1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use super::ToTriMesh; use crate::procedural::TriMesh; use crate::shape::Triangle; use alga::general::RealField; impl<N: RealField> ToTriMesh<N> for Triangle<N> { type DiscretizationParameter = (); fn to_trimesh(&self, _: ()) -> TriMesh<N> { TriMesh::new( vec![self.a().clone(), self.b().clone(), self.c().clone()], None, None, None, ) } }