[][src]Struct oxygengine_physics_2d::prelude::FEMSurfaceDesc

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

A builder for FEMSurface bodies.

Implementations

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

pub fn new(
    vertices: &'a [Point<N, U2>],
    triangles: &'a [Point<usize, U3>]
) -> FEMSurfaceDesc<'a, N>
[src]

Create a surface form the given tiangles.

pub fn quad(subdiv_x: usize, subdiv_y: usize) -> FEMSurfaceDesc<'a, N>[src]

Create a surface form the given triangles.

pub fn clear_kinematic_nodes(&mut self) -> &mut FEMSurfaceDesc<'a, N>[src]

Mark all nodes as non-kinematic.

pub fn user_data(self, data: impl UserData) -> FEMSurfaceDesc<'a, N>[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 FEMSurfaceDesc<'a, N>
[src]

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

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

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

pub fn plasticity(
    self,
    strain_threshold: N,
    creep: N,
    max_force: N
) -> FEMSurfaceDesc<'a, N>
[src]

pub fn set_plasticity(
    &mut self,
    strain_threshold: N,
    creep: N,
    max_force: N
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn kinematic_nodes(self, nodes: &[usize]) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_nodes_kinematic(
    &mut self,
    nodes: &[usize]
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn translation(
    self,
    vector: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> FEMSurfaceDesc<'a, N>
[src]

pub fn set_translation(
    &mut self,
    vector: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn gravity_enabled(self, gravity_enabled: bool) -> FEMSurfaceDesc<'a, N>[src]

pub fn enable_gravity(
    &mut self,
    gravity_enabled: bool
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn scale(
    self,
    scale: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> FEMSurfaceDesc<'a, N>
[src]

pub fn set_scale(
    &mut self,
    scale: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn young_modulus(self, young_modulus: N) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_young_modulus(
    &mut self,
    young_modulus: N
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn poisson_ratio(self, poisson_ratio: N) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_poisson_ratio(
    &mut self,
    poisson_ratio: N
) -> &mut FEMSurfaceDesc<'a, N>
[src]

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

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

pub fn mass_damping(self, mass_damping: N) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_mass_damping(
    &mut self,
    mass_damping: N
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn stiffness_damping(self, stiffness_damping: N) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_stiffness_damping(
    &mut self,
    stiffness_damping: N
) -> &mut FEMSurfaceDesc<'a, N>
[src]

pub fn density(self, density: N) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_density(&mut self, density: N) -> &mut FEMSurfaceDesc<'a, N>[src]

pub fn status(self, status: BodyStatus) -> FEMSurfaceDesc<'a, N>[src]

pub fn set_status(&mut self, status: BodyStatus) -> &mut FEMSurfaceDesc<'a, N>[src]

pub fn position(
    self,
    position: Isometry<N, U2, Unit<Complex<N>>>
) -> FEMSurfaceDesc<'a, N>
[src]

pub fn set_position(
    &mut self,
    position: Isometry<N, U2, Unit<Complex<N>>>
) -> &mut FEMSurfaceDesc<'a, N>
[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]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

pub fn get_translation(
    &self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
[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 get_position(&self) -> &Isometry<N, U2, Unit<Complex<N>>>[src]

pub fn get_scale(
    &self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
[src]

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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> Event for T where
    T: Send + Sync + 'static, 

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

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

impl<T> Resource for T where
    T: Any, 

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>,