Classes | |
| class | BaseOutlineParameters |
| class | ConstBaseOutlineParameters |
| class | ConstIntersectionInfo |
| class | ConstIntersectionsMap |
| class | ConstISweepLineCache |
| class | ConstOutlineParameters |
| class | ConstTriangulationParameters |
| class | IntersectionInfo |
| class | IntersectionsMap |
| class | ISweepLineCache |
| class | OutlineParameters |
| class | TriangulationParameters |
| class | WindingMode |
This is a namespace.
|
static |
@brief splits the near-planar region bounded by \\p loops in monotone parts, without triangulating them
this is the sweep-line triangulation stopped right after monotonation
@param loops one closed EdgeLoop per boundary of one region, bounding holes of \\p mesh as trackRightBoundaryLoop
returns them (a slit of one edge is a loop of 2 edges, and a loop of one edge is skipped); which way round a loop runs
does not matter; the holes can be several parts of one region split by edges between them, as all the holes of a face
cut along contours (the parts between the contours that cross its sides, and both sides of every island), since an edge
taken both ways adds zero winding
@param normal the orientation the region is monotone around, see \\ref triangulateDisjointContours
@return std::nullopt if the loops intersect or a chord would land in a face instead of a hole, so that
the caller can fall back on filling every loop separately; otherwise a plan with numTris == 0
for \\ref executeHoleFillPlan, which then only adds edges (empty if already monotone, a no-op).
Validate it with \\ref isFillingMultipleEdgeFree, since a chord may duplicate an off-loop mesh edge
|
static |
|
static |
returns Contour representing outline if input contours
|
static |
|
static |
returns Mesh with boundaries representing outline if input contours interMap optional output intersection map
|
static |
creates a cache for the sweep-line triangulation
|
static |
@brief triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour) @return return created mesh
|
static |
|
static |
@brief triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour) @return std::optional<Mesh> : if some contours intersect return false, otherwise return created mesh
|
static |
|
static |
@brief triangulate hole boundary loops of \\p mesh in the mesh's own 3d space, orienting faces around \\p normal
combinatorics run on the dominant-axis projection of \\p normal; output vertices keep the exact mesh coordinates
(no projection round-trip), and loops sharing a mesh vertex are merged by identity.
@param loops one closed EdgeLoop per contour (as produced by trackRightBoundaryLoop on each hole edge)
@param outPatchMap optional output: for each patch boundary edge (by undirected id) the mesh edge it copies,
directed along it; edges past its size are the triangulation's own
@return std::nullopt if the loops self-intersect, otherwise the patch mesh
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |