Skip to main content

Module polygon

Module polygon 

Source
Expand description

A polygon module, containing the Polygon struct and related types and methods. A polygon is a simple 2d shape in an N dimensional space, defined by its vertices and holes, and the plane it lies on. It can be tessellated into triangles using the tessellate_earcut method, which uses the earcut crate, or the tessellate_delaunay method, which uses the spade crate for Delaunay triangulation. The tessellated polygon is represented by the TessellatedPolygon struct, which contains a reference to the original polygon and a list of triangle indices.

Modules§

tessellate

Structs§

Polygon
A simple 2d polygon in an N dimensional space, defined by its vertices and holes, and the plane it lies on
TessellatedPolygon

Enums§

PolygonClassification
PolygonError