Trait ncollide3d::shape::DeformableShape [−][src]
pub trait DeformableShape<N: RealField> { fn deformations_type(&self) -> DeformationsType; fn set_deformations(&mut self, coords: &[N]); fn update_local_approximation(
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
); }
Trait implemented by deformable shapes.
Required methods
fn deformations_type(&self) -> DeformationsType
[src]
The type of degrees of freedom this shape has.
fn set_deformations(&mut self, coords: &[N])
[src]
Updates some the degrees of freedom of this shape. Updates all the degrees of freedom of this shape.
fn update_local_approximation(
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)
[src]
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)
Updates the given local approximation of this shape.
Implementors
impl<N: RealField> DeformableShape<N> for Polyline<N>
[src]
impl<N: RealField> DeformableShape<N> for Polyline<N>
[src]fn deformations_type(&self) -> DeformationsType
[src]
fn set_deformations(&mut self, coords: &[N])
[src]
Updates all the degrees of freedom of this shape.
fn update_local_approximation(
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)
[src]
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)
impl<N: RealField> DeformableShape<N> for TriMesh<N>
[src]
impl<N: RealField> DeformableShape<N> for TriMesh<N>
[src]fn deformations_type(&self) -> DeformationsType
[src]
fn set_deformations(&mut self, coords: &[N])
[src]
Updates all the degrees of freedom of this shape.
fn update_local_approximation(
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)
[src]
&self,
coords: &[N],
approx: &mut LocalShapeApproximation<N>
)