[−][src]Struct oxygengine_physics_2d::prelude::FEMSurfaceDesc
A builder for FEMSurface bodies.
Implementations
impl<'a, N> FEMSurfaceDesc<'a, N> where
N: RealField,
[src]
N: RealField,
pub fn new(
vertices: &'a [Point<N, U2>],
triangles: &'a [Point<usize, U3>]
) -> FEMSurfaceDesc<'a, N>
[src]
vertices: &'a [Point<N, U2>],
triangles: &'a [Point<usize, U3>]
) -> FEMSurfaceDesc<'a, N>
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]
&mut self,
data: Option<impl UserData>
) -> &mut FEMSurfaceDesc<'a, N>
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]
self,
strain_threshold: N,
creep: N,
max_force: N
) -> FEMSurfaceDesc<'a, N>
pub fn set_plasticity(
&mut self,
strain_threshold: N,
creep: N,
max_force: N
) -> &mut FEMSurfaceDesc<'a, N>
[src]
&mut self,
strain_threshold: N,
creep: N,
max_force: N
) -> &mut FEMSurfaceDesc<'a, N>
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]
&mut self,
nodes: &[usize]
) -> &mut FEMSurfaceDesc<'a, N>
pub fn translation(
self,
vector: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> FEMSurfaceDesc<'a, N>
[src]
self,
vector: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> FEMSurfaceDesc<'a, N>
pub fn set_translation(
&mut self,
vector: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut FEMSurfaceDesc<'a, N>
[src]
&mut self,
vector: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut FEMSurfaceDesc<'a, N>
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]
&mut self,
gravity_enabled: bool
) -> &mut FEMSurfaceDesc<'a, N>
pub fn scale(
self,
scale: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> FEMSurfaceDesc<'a, N>
[src]
self,
scale: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> FEMSurfaceDesc<'a, N>
pub fn set_scale(
&mut self,
scale: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut FEMSurfaceDesc<'a, N>
[src]
&mut self,
scale: Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
) -> &mut FEMSurfaceDesc<'a, N>
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]
&mut self,
young_modulus: N
) -> &mut FEMSurfaceDesc<'a, N>
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]
&mut self,
poisson_ratio: N
) -> &mut FEMSurfaceDesc<'a, N>
pub fn sleep_threshold(
self,
sleep_threshold: Option<N>
) -> FEMSurfaceDesc<'a, N>
[src]
self,
sleep_threshold: Option<N>
) -> FEMSurfaceDesc<'a, N>
pub fn set_sleep_threshold(
&mut self,
sleep_threshold: Option<N>
) -> &mut FEMSurfaceDesc<'a, N>
[src]
&mut self,
sleep_threshold: Option<N>
) -> &mut FEMSurfaceDesc<'a, N>
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]
&mut self,
mass_damping: N
) -> &mut FEMSurfaceDesc<'a, N>
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]
&mut self,
stiffness_damping: N
) -> &mut FEMSurfaceDesc<'a, N>
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]
self,
position: Isometry<N, U2, Unit<Complex<N>>>
) -> FEMSurfaceDesc<'a, N>
pub fn set_position(
&mut self,
position: Isometry<N, U2, Unit<Complex<N>>>
) -> &mut FEMSurfaceDesc<'a, N>
[src]
&mut self,
position: Isometry<N, U2, Unit<Complex<N>>>
) -> &mut FEMSurfaceDesc<'a, N>
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
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
[src]
&self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
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]
&self
) -> &Matrix<N, U2, U1, <DefaultAllocator as Allocator<N, U2, U1>>::Buffer>
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,
N: Scalar,
impl<'a, N> Sync for FEMSurfaceDesc<'a, N> where
N: Scalar,
N: Scalar,
impl<'a, N> Unpin for FEMSurfaceDesc<'a, N> where
N: Scalar + Unpin,
N: Scalar + Unpin,
impl<'a, N> !UnwindSafe for FEMSurfaceDesc<'a, N>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any,
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>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,