ncollide3d/transformation/to_trimesh/to_trimesh.rs
1use na::RealField;
2
3use crate::procedural::TriMesh;
4
5/// Trait implemented by shapes that can be approximated by a triangle mesh.
6pub trait ToTriMesh<N: RealField + Copy> {
7 type DiscretizationParameter;
8
9 /// Builds a triangle mesh from this shape.
10 ///
11 /// # Arguments:
12 /// * `i` - the discretization parameters.
13 fn to_trimesh(&self, i: Self::DiscretizationParameter) -> TriMesh<N>;
14}