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