Function ncollide::transformation::triangulate [] [src]

pub fn triangulate<P>(pts: &[P]) -> TriMesh<P> where
    P: Point

Triangulates a set of point (sort of) lying on the same 2d plane.

If the points do not lie on the same 2d plane, strange things might happends (triangle might be attached together in an unnatural way). Though, if they are only slighly perturbated on the directions orthogonal to the plane, this should be fine.