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