MeshLib C# Docs
Loading...
Searching...
No Matches
MR.PlanarTriangulation Class Reference

Classes

class  _ByValue_IntersectionsMap
 This is used as a function parameter when the underlying function receives IntersectionsMap by value. Usage:
 
class  _InOptConst_BaseOutlineParameters
 This is used for optional parameters of class BaseOutlineParameters with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_BaseOutlineParameters. Usage:
 
class  _InOptConst_IntersectionInfo
 This is used for optional parameters of class IntersectionInfo with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_IntersectionInfo. Usage:
 
class  _InOptConst_IntersectionsMap
 This is used for optional parameters of class IntersectionsMap with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_IntersectionsMap. Usage:
 
class  _InOptConst_OutlineParameters
 This is used for optional parameters of class OutlineParameters with default arguments. This is only used const parameters. For non-const ones we have _InOptMut_OutlineParameters. Usage:
 
class  _InOptMut_BaseOutlineParameters
 This is used for optional parameters of class BaseOutlineParameters with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_BaseOutlineParameters. Usage:
 
class  _InOptMut_IntersectionInfo
 This is used for optional parameters of class IntersectionInfo with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_IntersectionInfo. Usage:
 
class  _InOptMut_IntersectionsMap
 This is used for optional parameters of class IntersectionsMap with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_IntersectionsMap. Usage:
 
class  _InOptMut_OutlineParameters
 This is used for optional parameters of class OutlineParameters with default arguments. This is only used mutable parameters. For const ones we have _InOptConst_OutlineParameters. Usage:
 
class  BaseOutlineParameters
 Generated from class MR.PlanarTriangulation.BaseOutlineParameters. This is the non-const half of the class. More...
 
class  Const_BaseOutlineParameters
 Generated from class MR.PlanarTriangulation.BaseOutlineParameters. This is the const half of the class.
 
class  Const_IntersectionInfo
 Info about intersection point for mapping Generated from class MR.PlanarTriangulation.IntersectionInfo. This is the const half of the class.
 
class  Const_IntersectionsMap
 struct to map new vertices (only appear on intersections) of the outline to it's edges Generated from class MR.PlanarTriangulation.IntersectionsMap. This is the const half of the class.
 
class  Const_OutlineParameters
 Generated from class MR.PlanarTriangulation.OutlineParameters. This is the const half of the class.
 
class  IntersectionInfo
 Info about intersection point for mapping Generated from class MR.PlanarTriangulation.IntersectionInfo. This is the non-const half of the class. More...
 
class  IntersectionsMap
 struct to map new vertices (only appear on intersections) of the outline to it's edges Generated from class MR.PlanarTriangulation.IntersectionsMap. This is the non-const half of the class. More...
 
class  OutlineParameters
 Generated from class MR.PlanarTriangulation.OutlineParameters. This is the non-const half of the class. More...
 

Public Types

enum  WindingMode : int { NonZero = 0 , Positive = 1 , Negative = 2 }
 Specify mode of detecting inside and outside parts of triangulation. More...
 

Static Public Member Functions

static unsafe MR.Std.Vector_StdVectorMRVertId findHoleVertIdsByHoleEdges (MR.Const_MeshTopology tp, MR.Std.Const_Vector_StdVectorMREdgeId holePaths)
 return vertices of holes that correspond internal contours representation of PlanarTriangulation Generated from function MR.PlanarTriangulation.findHoleVertIdsByHoleEdges.
 
static unsafe MR.Mesh getOutlineMesh (MR.Std.Const_Vector_StdVectorMRVector2f contours, MR.PlanarTriangulation.IntersectionsMap? interMap=null, MR.PlanarTriangulation.Const_BaseOutlineParameters? params_=null)
 returns Mesh with boundaries representing outline if input contours interMap optional output intersection map Generated from function MR.PlanarTriangulation.getOutlineMesh. Parameter params_ defaults to {}.
 
static unsafe MR.Mesh getOutlineMesh (MR.Std.Const_Vector_StdVectorMRVector2d contours, MR.PlanarTriangulation.IntersectionsMap? interMap=null, MR.PlanarTriangulation.Const_BaseOutlineParameters? params_=null)
 Generated from function MR.PlanarTriangulation.getOutlineMesh. Parameter params_ defaults to {}.
 
static unsafe MR.Std.Vector_StdVectorMRVector2f getOutline (MR.Std.Const_Vector_StdVectorMRVector2f contours, MR.PlanarTriangulation.Const_OutlineParameters? params_=null)
 returns Contour representing outline if input contours Generated from function MR.PlanarTriangulation.getOutline. Parameter params_ defaults to {}.
 
static unsafe MR.Std.Vector_StdVectorMRVector2f getOutline (MR.Std.Const_Vector_StdVectorMRVector2d contours, MR.PlanarTriangulation.Const_OutlineParameters? params_=null)
 Generated from function MR.PlanarTriangulation.getOutline. Parameter params_ defaults to {}.
 
static unsafe MR.Mesh triangulateContours (MR.Std.Const_Vector_StdVectorMRVector2d contours, MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds=null)
 triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour)
 
static unsafe MR.Mesh triangulateContours (MR.Std.Const_Vector_StdVectorMRVector2f contours, MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds=null)
 Generated from function MR.PlanarTriangulation.triangulateContours.
 
static unsafe MR.Std.Optional_MRMesh triangulateDisjointContours (MR.Std.Const_Vector_StdVectorMRVector2d contours, MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds=null, MR.Std.Vector_StdVectorMREdgeId? outBoundaries=null)
 triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour)
 
static unsafe MR.Std.Optional_MRMesh triangulateDisjointContours (MR.Std.Const_Vector_StdVectorMRVector2f contours, MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds=null, MR.Std.Vector_StdVectorMREdgeId? outBoundaries=null)
 Generated from function MR.PlanarTriangulation.triangulateDisjointContours.
 

Member Enumeration Documentation

◆ WindingMode

Specify mode of detecting inside and outside parts of triangulation.

Enumerator
NonZero 
Positive 
Negative 

Member Function Documentation

◆ findHoleVertIdsByHoleEdges()

static unsafe MR.Std.Vector_StdVectorMRVertId MR.PlanarTriangulation.findHoleVertIdsByHoleEdges ( MR.Const_MeshTopology tp,
MR.Std.Const_Vector_StdVectorMREdgeId holePaths )
inlinestatic

return vertices of holes that correspond internal contours representation of PlanarTriangulation Generated from function MR.PlanarTriangulation.findHoleVertIdsByHoleEdges.

◆ getOutline() [1/2]

static unsafe MR.Std.Vector_StdVectorMRVector2f MR.PlanarTriangulation.getOutline ( MR.Std.Const_Vector_StdVectorMRVector2d contours,
MR.PlanarTriangulation.Const_OutlineParameters? params_ = null )
inlinestatic

Generated from function MR.PlanarTriangulation.getOutline. Parameter params_ defaults to {}.

◆ getOutline() [2/2]

static unsafe MR.Std.Vector_StdVectorMRVector2f MR.PlanarTriangulation.getOutline ( MR.Std.Const_Vector_StdVectorMRVector2f contours,
MR.PlanarTriangulation.Const_OutlineParameters? params_ = null )
inlinestatic

returns Contour representing outline if input contours Generated from function MR.PlanarTriangulation.getOutline. Parameter params_ defaults to {}.

◆ getOutlineMesh() [1/2]

static unsafe MR.Mesh MR.PlanarTriangulation.getOutlineMesh ( MR.Std.Const_Vector_StdVectorMRVector2d contours,
MR.PlanarTriangulation.IntersectionsMap? interMap = null,
MR.PlanarTriangulation.Const_BaseOutlineParameters? params_ = null )
inlinestatic

Generated from function MR.PlanarTriangulation.getOutlineMesh. Parameter params_ defaults to {}.

◆ getOutlineMesh() [2/2]

static unsafe MR.Mesh MR.PlanarTriangulation.getOutlineMesh ( MR.Std.Const_Vector_StdVectorMRVector2f contours,
MR.PlanarTriangulation.IntersectionsMap? interMap = null,
MR.PlanarTriangulation.Const_BaseOutlineParameters? params_ = null )
inlinestatic

returns Mesh with boundaries representing outline if input contours interMap optional output intersection map Generated from function MR.PlanarTriangulation.getOutlineMesh. Parameter params_ defaults to {}.

◆ triangulateContours() [1/2]

static unsafe MR.Mesh MR.PlanarTriangulation.triangulateContours ( MR.Std.Const_Vector_StdVectorMRVector2d contours,
MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds = null )
inlinestatic

triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour)

Parameters
holeVertsIdsif set merge only points with same vertex id, otherwise merge all points with same coordinates
Returns
return created mesh Generated from function MR.PlanarTriangulation.triangulateContours.

◆ triangulateContours() [2/2]

static unsafe MR.Mesh MR.PlanarTriangulation.triangulateContours ( MR.Std.Const_Vector_StdVectorMRVector2f contours,
MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds = null )
inlinestatic

◆ triangulateDisjointContours() [1/2]

static unsafe MR.Std.Optional_MRMesh MR.PlanarTriangulation.triangulateDisjointContours ( MR.Std.Const_Vector_StdVectorMRVector2d contours,
MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds = null,
MR.Std.Vector_StdVectorMREdgeId? outBoundaries = null )
inlinestatic

triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour)

Parameters
holeVertsIdsif set merge only points with same vertex id, otherwise merge all points with same coordinates
outBoundariesoptional output EdgePaths that correspond to initial contours
Returns
std.optional<Mesh> : if some contours intersect return false, otherwise return created mesh Generated from function MR.PlanarTriangulation.triangulateDisjointContours.

◆ triangulateDisjointContours() [2/2]

static unsafe MR.Std.Optional_MRMesh MR.PlanarTriangulation.triangulateDisjointContours ( MR.Std.Const_Vector_StdVectorMRVector2f contours,
MR.Std.Const_Vector_StdVectorMRVertId? holeVertsIds = null,
MR.Std.Vector_StdVectorMREdgeId? outBoundaries = null )
inlinestatic

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