MeshLib Python Docs
Loading...
Searching...
No Matches
mrmeshpy.PlanarTriangulation Class Reference

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

Static Public Member Functions

HoleFillPlan getMonotonePlan (ConstMesh mesh, Const_std_vector_std_vector_Id_EdgeTag loops, ConstVector3f normal)
std_vector_std_vector_Vector2_float getOutline (Const_std_vector_std_vector_Vector2_float contours, PlanarTriangulation.ConstOutlineParameters params=...)
std_vector_std_vector_Vector2_float getOutline (Const_std_vector_std_vector_Vector2_double contours, PlanarTriangulation.ConstOutlineParameters params=...)
Mesh getOutlineMesh (Const_std_vector_std_vector_Vector2_float contours, PlanarTriangulation.IntersectionsMap interMap=None, PlanarTriangulation.ConstBaseOutlineParameters params=...)
Mesh getOutlineMesh (Const_std_vector_std_vector_Vector2_double contours, PlanarTriangulation.IntersectionsMap interMap=None, PlanarTriangulation.ConstBaseOutlineParameters params=...)
PlanarTriangulation.ISweepLineCache makeSweepLineCache ()
Mesh triangulateContours (Const_std_vector_std_vector_Vector2_double contours, PlanarTriangulation.ConstTriangulationParameters params=...)
Mesh triangulateContours (Const_std_vector_std_vector_Vector2_float contours, PlanarTriangulation.ConstTriangulationParameters params=...)
Mesh triangulateDisjointContours (Const_std_vector_std_vector_Vector2_double contours, PlanarTriangulation.ISweepLineCache cache=None)
Mesh triangulateDisjointContours (Const_std_vector_std_vector_Vector2_float contours, PlanarTriangulation.ISweepLineCache cache=None)
Mesh triangulateDisjointContours (ConstMesh mesh, Const_std_vector_std_vector_Id_EdgeTag loops, ConstVector3f normal, WholeEdgeMap outPatchMap=None, PlanarTriangulation.ISweepLineCache cache=None)

Static Public Attributes

 ConstContourIdMap = Const_std_vector_PlanarTriangulation_IntersectionInfo
 ConstContoursIdMap = Const_std_vector_std_vector_PlanarTriangulation_IntersectionInfo
 ConstContoursIdMap_ptr = Const_std_vector_std_vector_PlanarTriangulation_IntersectionInfo
 ContourIdMap = std_vector_PlanarTriangulation_IntersectionInfo
 ContoursIdMap = std_vector_std_vector_PlanarTriangulation_IntersectionInfo
 ContoursIdMap_ptr = std_vector_std_vector_PlanarTriangulation_IntersectionInfo

Detailed Description

This is a namespace.

Member Function Documentation

◆ getMonotonePlan()

HoleFillPlan mrmeshpy.PlanarTriangulation.getMonotonePlan ( ConstMesh mesh,
Const_std_vector_std_vector_Id_EdgeTag loops,
ConstVector3f normal )
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

◆ getOutline() [1/2]

◆ getOutline() [2/2]

std_vector_std_vector_Vector2_float mrmeshpy.PlanarTriangulation.getOutline ( Const_std_vector_std_vector_Vector2_float contours,
PlanarTriangulation.ConstOutlineParameters params = ... )
static
returns Contour representing outline if input contours

◆ getOutlineMesh() [1/2]

Mesh mrmeshpy.PlanarTriangulation.getOutlineMesh ( Const_std_vector_std_vector_Vector2_double contours,
PlanarTriangulation.IntersectionsMap interMap = None,
PlanarTriangulation.ConstBaseOutlineParameters params = ... )
static

◆ getOutlineMesh() [2/2]

Mesh mrmeshpy.PlanarTriangulation.getOutlineMesh ( Const_std_vector_std_vector_Vector2_float contours,
PlanarTriangulation.IntersectionsMap interMap = None,
PlanarTriangulation.ConstBaseOutlineParameters params = ... )
static
returns Mesh with boundaries representing outline if input contours
interMap optional output intersection map

◆ makeSweepLineCache()

PlanarTriangulation.ISweepLineCache mrmeshpy.PlanarTriangulation.makeSweepLineCache ( )
static
creates a cache for the sweep-line triangulation

◆ triangulateContours() [1/2]

Mesh mrmeshpy.PlanarTriangulation.triangulateContours ( Const_std_vector_std_vector_Vector2_double contours,
PlanarTriangulation.ConstTriangulationParameters params = ... )
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

◆ triangulateContours() [2/2]

Mesh mrmeshpy.PlanarTriangulation.triangulateContours ( Const_std_vector_std_vector_Vector2_float contours,
PlanarTriangulation.ConstTriangulationParameters params = ... )
static

◆ triangulateDisjointContours() [1/3]

Mesh mrmeshpy.PlanarTriangulation.triangulateDisjointContours ( Const_std_vector_std_vector_Vector2_double contours,
PlanarTriangulation.ISweepLineCache cache = None )
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

◆ triangulateDisjointContours() [2/3]

Mesh mrmeshpy.PlanarTriangulation.triangulateDisjointContours ( Const_std_vector_std_vector_Vector2_float contours,
PlanarTriangulation.ISweepLineCache cache = None )
static

◆ triangulateDisjointContours() [3/3]

Mesh mrmeshpy.PlanarTriangulation.triangulateDisjointContours ( ConstMesh mesh,
Const_std_vector_std_vector_Id_EdgeTag loops,
ConstVector3f normal,
WholeEdgeMap outPatchMap = None,
PlanarTriangulation.ISweepLineCache cache = None )
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

Member Data Documentation

◆ ConstContourIdMap

mrmeshpy.PlanarTriangulation.ConstContourIdMap = Const_std_vector_PlanarTriangulation_IntersectionInfo
static

◆ ConstContoursIdMap

mrmeshpy.PlanarTriangulation.ConstContoursIdMap = Const_std_vector_std_vector_PlanarTriangulation_IntersectionInfo
static

◆ ConstContoursIdMap_ptr

mrmeshpy.PlanarTriangulation.ConstContoursIdMap_ptr = Const_std_vector_std_vector_PlanarTriangulation_IntersectionInfo
static

◆ ContourIdMap

mrmeshpy.PlanarTriangulation.ContourIdMap = std_vector_PlanarTriangulation_IntersectionInfo
static

◆ ContoursIdMap

mrmeshpy.PlanarTriangulation.ContoursIdMap = std_vector_std_vector_PlanarTriangulation_IntersectionInfo
static

◆ ContoursIdMap_ptr

mrmeshpy.PlanarTriangulation.ContoursIdMap_ptr = std_vector_std_vector_PlanarTriangulation_IntersectionInfo
static

The documentation for this class was generated from the following file: