Trait ncollide3d::shape::CompositeShape [−][src]
pub trait CompositeShape<N: RealField> { fn nparts(&self) -> usize; fn map_part_at(
&self,
_: usize,
m: &Isometry<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
); fn map_part_and_preprocessor_at(
&self,
_: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
); fn aabb_at(&self, i: usize) -> AABB<N>; fn bvh(&self) -> BVHImpl<'_, N, usize, AABB<N>>; }
Trait implemented by shapes composed of multiple simpler shapes.
A composite shape is composed of several shapes. Typically, it is a convex decomposition of a concave shape.
Required methods
fn nparts(&self) -> usize
[src]
The number of sub-shape in this composide shape.
fn map_part_at(
&self,
_: usize,
m: &Isometry<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
[src]
&self,
_: usize,
m: &Isometry<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
Applies a transformation matrix and a function to each sub-shape of this concave shape.
fn map_part_and_preprocessor_at(
&self,
_: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
[src]
&self,
_: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
_: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
Applies a transformation matrix and a function to each sub-shape of this concave shape.
fn aabb_at(&self, i: usize) -> AABB<N>
[src]
Gets the AABB of the shape identified by the index i
.
fn bvh(&self) -> BVHImpl<'_, N, usize, AABB<N>>
[src]
Gets the acceleration structure of the concave shape.
Implementors
impl<N: RealField> CompositeShape<N> for Compound<N>
[src]
impl<N: RealField> CompositeShape<N> for Compound<N>
[src]fn nparts(&self) -> usize
[src]
fn map_part_at(
&self,
i: usize,
m: &Isometry<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
[src]
&self,
i: usize,
m: &Isometry<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
fn map_part_and_preprocessor_at(
&self,
i: usize,
m: &Isometry<N>,
_prediction: &ContactPrediction<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
[src]
&self,
i: usize,
m: &Isometry<N>,
_prediction: &ContactPrediction<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
fn aabb_at(&self, i: usize) -> AABB<N>
[src]
fn bvh(&self) -> BVHImpl<'_, N, usize, AABB<N>>
[src]
impl<N: RealField> CompositeShape<N> for Polyline<N>
[src]
impl<N: RealField> CompositeShape<N> for Polyline<N>
[src]fn nparts(&self) -> usize
[src]
fn map_part_at(
&self,
i: usize,
m: &Isometry<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
[src]
&self,
i: usize,
m: &Isometry<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
fn map_part_and_preprocessor_at(
&self,
i: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
[src]
&self,
i: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
fn aabb_at(&self, i: usize) -> AABB<N>
[src]
fn bvh(&self) -> BVHImpl<'_, N, usize, AABB<N>>
[src]
impl<N: RealField> CompositeShape<N> for TriMesh<N>
[src]
impl<N: RealField> CompositeShape<N> for TriMesh<N>
[src]fn nparts(&self) -> usize
[src]
fn map_part_at(
&self,
i: usize,
m: &Isometry<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
[src]
&self,
i: usize,
m: &Isometry<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>)
)
fn map_part_and_preprocessor_at(
&self,
i: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)
[src]
&self,
i: usize,
m: &Isometry<N>,
prediction: &ContactPrediction<N>,
f: &mut dyn FnMut(&Isometry<N>, &dyn Shape<N>, &dyn ContactPreprocessor<N>)
)