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