i_triangle 0.42.0

Polygon Triangulation Library: Efficient Delaunay Triangulation for Complex Shapes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub(crate) const NIL_INDEX: usize = usize::MAX;

pub(crate) trait Index {
    fn is_not_nil(&self) -> bool;
}

impl Index for usize {
    fn is_not_nil(&self) -> bool {
        *self != NIL_INDEX
    }
}