Skip to main content

Crate louvre

Crate louvre 

Source

Enums§

Error
Winding
Winding direction of a vertex list

Traits§

Number
Trait for signed number types

Functions§

triangulate
Triangulates a polygon’s flat coordinates array (data), robust to self-intersections.
triangulate_owned
triangulate for an owned buffer: reuses data and returns a single coordinates buffer with the intersection points (if any) appended in place, so indices can be resolved against one buffer.
triangulate_simple
triangulate without the intersection-detection pass: the input is trusted to be a simple polygon and is ear-clipped directly.