MeshLib Python Docs
Loading...
Searching...
No Matches
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='{}')
 
std_vector_std_vector_Vector2_float getOutline (std_vector_std_vector_Vector2_double contours, PlanarTriangulation.OutlineParameters params='{}')
 
Mesh getOutlineMesh (std_vector_std_vector_Vector2_float contours, PlanarTriangulation.IntersectionsMap interMap=None, PlanarTriangulation.BaseOutlineParameters params='{}')
 
Mesh getOutlineMesh (std_vector_std_vector_Vector2_double contours, PlanarTriangulation.IntersectionsMap interMap=None, PlanarTriangulation.BaseOutlineParameters params='{}')
 
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
 

Static Protected Member Functions

 _pybind11_conduit_v1_ (*args, **kwargs)
 

Detailed Description

This is a namespace.

Member Function Documentation

◆ _pybind11_conduit_v1_()

mrmeshpy.PlanarTriangulation._pybind11_conduit_v1_ ( * args,
** kwargs )
staticprotected

◆ findHoleVertIdsByHoleEdges()

std_vector_std_vector_Id_VertTag 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]

std_vector_std_vector_Vector2_float mrmeshpy.PlanarTriangulation.getOutline ( std_vector_std_vector_Vector2_double contours,
PlanarTriangulation.OutlineParameters params = '{}' )
static

◆ getOutline() [2/2]

std_vector_std_vector_Vector2_float mrmeshpy.PlanarTriangulation.getOutline ( std_vector_std_vector_Vector2_float contours,
PlanarTriangulation.OutlineParameters params = '{}' )
static
returns Contour representing outline if input contours

◆ getOutlineMesh() [1/2]

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

◆ getOutlineMesh() [2/2]

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

◆ triangulateContours() [1/2]

Mesh 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 mrmeshpy.PlanarTriangulation.triangulateContours ( std_vector_std_vector_Vector2_float contours,
std_vector_std_vector_Id_VertTag holeVertsIds = None )
static

◆ triangulateDisjointContours() [1/2]

Mesh 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 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

mrmeshpy.PlanarTriangulation.ContourIdMap
static

◆ ContoursIdMap

mrmeshpy.PlanarTriangulation.ContoursIdMap = std_vector_std_vector_PlanarTriangulation_IntersectionInfo
static

◆ HolesVertIds

mrmeshpy.PlanarTriangulation.HolesVertIds = std_vector_std_vector_Id_VertTag
static

◆ HoleVertIds

mrmeshpy.PlanarTriangulation.HoleVertIds = std_vector_Id_VertTag
static

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