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