Function cdt::triangulate_contours[][src]

pub fn triangulate_contours<V>(
    pts: &[(f64, f64)],
    contours: &[V]
) -> Result<Vec<(usize, usize, usize)>, Error> where
    &'b V: IntoIterator<Item = &'b usize>, 
Expand description

Triangulates a set of contours, given as indexed paths into the point list. Each contour must be closed (i.e. the last point in the contour must equal the first point), otherwise Error::OpenContour will be returned.