Miscellaneous data structures for interfacing with this library.
More...
|
|
using | SimplePolygonIdx = std::vector<PolyVert> |
| | Single polygon contour, wound CCW, with indices. First and last point are implicitly connected. Should ensure all input is ε-valid.
|
| |
|
using | PolygonsIdx = std::vector<SimplePolygonIdx> |
| | Set of indexed polygons with holes. Order of contours is arbitrary. Can contain any depth of nested holes and any number of separate polygons. Should ensure all input is ε-valid.
|
| |
|
using | SimplePolygon = std::vector<vec2> |
| | Single polygon contour, wound CCW. First and last point are implicitly connected. Should ensure all input is ε-valid.
|
| |
|
using | Polygons = std::vector<SimplePolygon> |
| | Set of polygons with holes. Order of contours is arbitrary. Can contain any depth of nested holes and any number of separate polygons. Should ensure all input is ε-valid.
|
| |
|
| enum class | OpType { Add
, Subtract
, Intersect
} |
| | Boolean operation type: Add (Union), Subtract (Difference), and Intersect.
|
| |
|
|
constexpr int | DEFAULT_SEGMENTS = 0 |
| |
|
constexpr double | DEFAULT_ANGLE = 10.0 |
| |
|
constexpr double | DEFAULT_LENGTH = 1.0 |
| |
Miscellaneous data structures for interfacing with this library.
◆ manifold::PolyVert
| struct manifold::PolyVert |
| Class Members |
|
vec2 |
pos |
X-Y position. |
|
int |
idx |
ID or index into another vertex vector. |
◆ manifold::Smoothness
| struct manifold::Smoothness |
Defines which edges to sharpen and how much for the Manifold.Smooth() constructor.
| Class Members |
|
size_t |
halfedge |
The halfedge index = 3 * tri + i, referring to Mesh.triVerts[tri][i]. |
|
double |
smoothness |
A value between 0 and 1, where 0 is sharp and 1 is the default and the curvature is interpolated between these values. The two paired halfedges can have different values while maintaining C-1 continuity (except for 0).
|