16#include "manifold/common.h"
Global parameters that control debugging output. Only has an effect when compiled with the MANIFOLD_D...
Definition common.h:576
vec2 pos
X-Y position.
Definition polygon.h:29
int idx
ID or index into another vertex vector.
Definition polygon.h:31
std::vector< SimplePolygon > Polygons
Set of polygons with holes. Order of contours is arbitrary. Can contain any depth of nested holes and...
Definition common.h:139
std::vector< SimplePolygonIdx > PolygonsIdx
Set of indexed polygons with holes. Order of contours is arbitrary. Can contain any depth of nested h...
Definition polygon.h:47
std::vector< PolyVert > SimplePolygonIdx
Single polygon contour, wound CCW, with indices. First and last point are implicitly connected....
Definition polygon.h:39
Polygon vertex.
Definition polygon.h:27
std::vector< ivec3 > Triangulate(const Polygons &polygons, double epsilon=-1)
Triangulates a set of ε-valid polygons. If the input is not ε-valid, the triangulation may overlap,...
Definition polygon.cpp:995
std::vector< ivec3 > TriangulateIdx(const PolygonsIdx &polys, double epsilon=-1)
Triangulates a set of ε-valid polygons. If the input is not ε-valid, the triangulation may overlap,...
Definition polygon.cpp:950