[][src]Struct nphysics3d::object::FEMVolumeDesc

pub struct FEMVolumeDesc<'a, N: RealField> { /* fields omitted */ }

A builder for FEMVolume bodies.

Methods

impl<'a, N: RealField> FEMVolumeDesc<'a, N>[src]

pub fn new(vertices: &'a [Point3<N>], tetrahedrons: &'a [Point4<usize>]) -> Self[src]

Create a volume form the given tetrahedrons.

pub fn cube(subdiv_x: usize, subdiv_y: usize, subdiv_z: usize) -> Self[src]

Create a cube-shaped body.

pub fn clear_kinematic_nodes(&mut self) -> &mut Self[src]

Mark all nodes as non-kinematic.

pub fn user_data(self, data: impl UserData) -> Self[src]

Sets a user-data to be attached to the object being built.

pub fn set_user_data(&mut self, data: Option<impl UserData>) -> &mut Self[src]

Sets the user-data to be attached to the object being built.

pub fn get_user_data(&self) -> Option<&(dyn Any + Send + Sync)>[src]

Reference to the user-data to be attached to the object being built.

pub fn collider_enabled(self, enable: bool) -> Self[src]

pub fn set_collider_enabled(&mut self, enable: bool) -> &mut Self[src]

pub fn plasticity(self, strain_threshold: N, creep: N, max_force: N) -> Self[src]

pub fn set_plasticity(
    &mut self,
    strain_threshold: N,
    creep: N,
    max_force: N
) -> &mut Self
[src]

pub fn kinematic_nodes(self, nodes: &[usize]) -> Self[src]

pub fn set_nodes_kinematic(&mut self, nodes: &[usize]) -> &mut Self[src]

pub fn translation(self, vector: Vector3<N>) -> Self[src]

pub fn set_translation(&mut self, vector: Vector3<N>) -> &mut Self[src]

pub fn gravity_enabled(self, gravity_enabled: bool) -> Self[src]

pub fn enable_gravity(&mut self, gravity_enabled: bool) -> &mut Self[src]

pub fn scale(self, scale: Vector3<N>) -> Self[src]

pub fn set_scale(&mut self, scale: Vector3<N>) -> &mut Self[src]

pub fn young_modulus(self, young_modulus: N) -> Self[src]

pub fn set_young_modulus(&mut self, young_modulus: N) -> &mut Self[src]

pub fn poisson_ratio(self, poisson_ratio: N) -> Self[src]

pub fn set_poisson_ratio(&mut self, poisson_ratio: N) -> &mut Self[src]

pub fn sleep_threshold(self, sleep_threshold: Option<N>) -> Self[src]

pub fn set_sleep_threshold(&mut self, sleep_threshold: Option<N>) -> &mut Self[src]

pub fn mass_damping(self, mass_damping: N) -> Self[src]

pub fn set_mass_damping(&mut self, mass_damping: N) -> &mut Self[src]

pub fn stiffness_damping(self, stiffness_damping: N) -> Self[src]

pub fn set_stiffness_damping(&mut self, stiffness_damping: N) -> &mut Self[src]

pub fn density(self, density: N) -> Self[src]

pub fn set_density(&mut self, density: N) -> &mut Self[src]

pub fn status(self, status: BodyStatus) -> Self[src]

pub fn set_status(&mut self, status: BodyStatus) -> &mut Self[src]

pub fn position(self, position: Isometry3<N>) -> Self[src]

pub fn set_position(&mut self, position: Isometry3<N>) -> &mut Self[src]

pub fn get_plasticity_strain_threshold(&self) -> N[src]

pub fn get_plasticity_creep(&self) -> N[src]

pub fn get_plasticity_max_force(&self) -> N[src]

pub fn get_kinematic_nodes(&self) -> &[usize][src]

pub fn get_translation(&self) -> &Vector3<N>[src]

pub fn is_gravity_enabled(&self) -> bool[src]

pub fn get_young_modulus(&self) -> N[src]

pub fn get_poisson_ratio(&self) -> N[src]

pub fn get_sleep_threshold(&self) -> Option<N>[src]

pub fn get_mass_damping(&self) -> N[src]

pub fn get_stiffness_damping(&self) -> N[src]

pub fn get_density(&self) -> N[src]

pub fn get_status(&self) -> BodyStatus[src]

pub fn is_collider_enabled(&self) -> bool[src]

pub fn get_position(&self) -> &Isometry3<N>[src]

pub fn get_scale(&self) -> &Vector3<N>[src]

pub fn build(&self) -> FEMVolume<N>[src]

Builds a finite-element based deformable body from this description.

Auto Trait Implementations

impl<'a, N> !RefUnwindSafe for FEMVolumeDesc<'a, N>

impl<'a, N> Send for FEMVolumeDesc<'a, N> where
    N: Scalar

impl<'a, N> Sync for FEMVolumeDesc<'a, N> where
    N: Scalar

impl<'a, N> Unpin for FEMVolumeDesc<'a, N> where
    N: Scalar + Unpin

impl<'a, N> !UnwindSafe for FEMVolumeDesc<'a, N>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,