12namespace PlanarTriangulation
Definition MRMeshTopology.h:22
std::vector< HoleVertIds > HolesVertIds
Definition MR2DContoursTriangulation.h:24
std::vector< IntersectionInfo > ContourIdMap
Definition MR2DContoursTriangulation.h:48
VertId lDest
Definition MR2DContoursTriangulation.h:34
MRMESH_API Contours2f getOutline(const Contours2f &contours, const OutlineParameters ¶ms={})
returns Contour representing outline if input contours
std::vector< ContourIdMap > ContoursIdMap
Definition MR2DContoursTriangulation.h:49
ContourIdMap map
map[id-shift] = {lower intersection edge, upper intersection edge}
Definition MR2DContoursTriangulation.h:57
VertId lOrg
Definition MR2DContoursTriangulation.h:34
VertId uDest
Definition MR2DContoursTriangulation.h:36
MRMESH_API std::optional< Mesh > triangulateDisjointContours(const Contours2d &contours, const HolesVertIds *holeVertsIds=nullptr, std::vector< EdgePath > *outBoundaries=nullptr)
triangulate 2d contours only closed contours are allowed (first point of each contour should be the s...
MRMESH_API HolesVertIds findHoleVertIdsByHoleEdges(const MeshTopology &tp, const std::vector< EdgePath > &holePaths)
return vertices of holes that correspond internal contours representation of PlanarTriangulation
MRMESH_API Mesh triangulateContours(const Contours2d &contours, const HolesVertIds *holeVertsIds=nullptr)
triangulate 2d contours only closed contours are allowed (first point of each contour should be the s...
bool isIntersection() const
Definition MR2DContoursTriangulation.h:45
WindingMode
Specify mode of detecting inside and outside parts of triangulation.
Definition MR2DContoursTriangulation.h:17
float uRatio
Definition MR2DContoursTriangulation.h:44
std::vector< VertId > HoleVertIds
Definition MR2DContoursTriangulation.h:23
BaseOutlineParameters baseParams
Definition MR2DContoursTriangulation.h:74
bool allowMerge
allow to merge vertices with same coordinates
Definition MR2DContoursTriangulation.h:62
float lRatio
Definition MR2DContoursTriangulation.h:41
MRMESH_API Mesh getOutlineMesh(const Contours2f &contours, IntersectionsMap *interMap=nullptr, const BaseOutlineParameters ¶ms={})
VertId uOrg
ids of upper intersection edge vertices
Definition MR2DContoursTriangulation.h:36
WindingMode innerType
what to mark as inner part
Definition MR2DContoursTriangulation.h:63
size_t shift
shift of index
Definition MR2DContoursTriangulation.h:55
ContoursIdMap * indicesMap
optional output from result contour ids to input ones
Definition MR2DContoursTriangulation.h:73
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MR2DContoursTriangulation.h:61
Info about intersection point for mapping.
Definition MR2DContoursTriangulation.h:31
struct to map new vertices (only appear on intersections) of the outline to it's edges
Definition MR2DContoursTriangulation.h:53
Definition MR2DContoursTriangulation.h:72