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

Classes

class  BaseOutlineParameters
 
class  IntersectionInfo
 
class  IntersectionsMap
 
class  OutlineParameters
 
class  WindingMode
 

Static Public Member Functions

std_vector_std_vector_Id_VertTag findHoleVertIdsByHoleEdges (MeshTopology tp, std_vector_std_vector_Id_EdgeTag holePaths)
 
std_vector_std_vector_Vector2_float getOutline (std_vector_std_vector_Vector2_float contours, PlanarTriangulation.OutlineParameters params='MR::PlanarTriangulation::OutlineParameters{}')
 
std_vector_std_vector_Vector2_float getOutline (std_vector_std_vector_Vector2_double contours, PlanarTriangulation.OutlineParameters params='MR::PlanarTriangulation::OutlineParameters{}')
 
Mesh getOutlineMesh (std_vector_std_vector_Vector2_float contours, PlanarTriangulation.IntersectionsMap interMap=None, PlanarTriangulation.BaseOutlineParameters params='MR::PlanarTriangulation::BaseOutlineParameters{}')
 
Mesh getOutlineMesh (std_vector_std_vector_Vector2_double contours, PlanarTriangulation.IntersectionsMap interMap=None, PlanarTriangulation.BaseOutlineParameters params='MR::PlanarTriangulation::BaseOutlineParameters{}')
 
Mesh triangulateContours (std_vector_std_vector_Vector2_double contours, std_vector_std_vector_Id_VertTag holeVertsIds=None)
 
Mesh triangulateContours (std_vector_std_vector_Vector2_float contours, std_vector_std_vector_Id_VertTag holeVertsIds=None)
 
Mesh triangulateDisjointContours (std_vector_std_vector_Vector2_double contours, std_vector_std_vector_Id_VertTag holeVertsIds=None, std_vector_std_vector_Id_EdgeTag outBoundaries=None)
 
Mesh triangulateDisjointContours (std_vector_std_vector_Vector2_float contours, std_vector_std_vector_Id_VertTag holeVertsIds=None, std_vector_std_vector_Id_EdgeTag outBoundaries=None)
 

Static Public Attributes

 ContourIdMap
 
 ContoursIdMap = std_vector_std_vector_PlanarTriangulation_IntersectionInfo
 
 HoleVertIds = std_vector_Id_VertTag
 
 HolesVertIds = std_vector_std_vector_Id_VertTag
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ findHoleVertIdsByHoleEdges()

std_vector_std_vector_Id_VertTag meshlib.mrmeshpy.PlanarTriangulation.findHoleVertIdsByHoleEdges ( MeshTopology tp,
std_vector_std_vector_Id_EdgeTag holePaths )
static
return vertices of holes that correspond internal contours representation of PlanarTriangulation

◆ getOutline() [1/2]

◆ getOutline() [2/2]

returns Contour representing outline if input contours

◆ getOutlineMesh() [1/2]

Mesh meshlib.mrmeshpy.PlanarTriangulation.getOutlineMesh ( std_vector_std_vector_Vector2_double contours,
PlanarTriangulation.IntersectionsMap interMap = None,
PlanarTriangulation.BaseOutlineParameters params = 'MR::PlanarTriangulation::BaseOutlineParameters{}' )
static

◆ getOutlineMesh() [2/2]

Mesh meshlib.mrmeshpy.PlanarTriangulation.getOutlineMesh ( std_vector_std_vector_Vector2_float contours,
PlanarTriangulation.IntersectionsMap interMap = None,
PlanarTriangulation.BaseOutlineParameters params = 'MR::PlanarTriangulation::BaseOutlineParameters{}' )
static
returns Mesh with boundaries representing outline if input contours
interMap optional output intersection map

◆ triangulateContours() [1/2]

Mesh meshlib.mrmeshpy.PlanarTriangulation.triangulateContours ( std_vector_std_vector_Vector2_double contours,
std_vector_std_vector_Id_VertTag holeVertsIds = 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)
 @param holeVertsIds if set merge only points with same vertex id, otherwise merge all points with same coordinates
 @return return created mesh

◆ triangulateContours() [2/2]

Mesh meshlib.mrmeshpy.PlanarTriangulation.triangulateContours ( std_vector_std_vector_Vector2_float contours,
std_vector_std_vector_Id_VertTag holeVertsIds = None )
static

◆ triangulateDisjointContours() [1/2]

Mesh meshlib.mrmeshpy.PlanarTriangulation.triangulateDisjointContours ( std_vector_std_vector_Vector2_double contours,
std_vector_std_vector_Id_VertTag holeVertsIds = None,
std_vector_std_vector_Id_EdgeTag outBoundaries = 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)
 @param holeVertsIds if set merge only points with same vertex id, otherwise merge all points with same coordinates
 @param outBoundaries optional output EdgePaths that correspond to initial contours
 @return std::optional<Mesh> : if some contours intersect return false, otherwise return created mesh

◆ triangulateDisjointContours() [2/2]

Mesh meshlib.mrmeshpy.PlanarTriangulation.triangulateDisjointContours ( std_vector_std_vector_Vector2_float contours,
std_vector_std_vector_Id_VertTag holeVertsIds = None,
std_vector_std_vector_Id_EdgeTag outBoundaries = None )
static

Member Data Documentation

◆ ContourIdMap

meshlib.mrmeshpy.PlanarTriangulation.ContourIdMap
static

◆ ContoursIdMap

meshlib.mrmeshpy.PlanarTriangulation.ContoursIdMap = std_vector_std_vector_PlanarTriangulation_IntersectionInfo
static

◆ HolesVertIds

meshlib.mrmeshpy.PlanarTriangulation.HolesVertIds = std_vector_std_vector_Id_VertTag
static

◆ HoleVertIds

meshlib.mrmeshpy.PlanarTriangulation.HoleVertIds = std_vector_Id_VertTag
static

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