MeshLib C++ Docs
Loading...
Searching...
No Matches
MR2DContoursTriangulation.h File Reference
#include "MRMeshFwd.h"
#include "MRId.h"
#include <optional>

Go to the source code of this file.

Classes

class  MR::PlanarTriangulation::IntersectionInfo
 Info about intersection point for mapping.
 
class  MR::PlanarTriangulation::IntersectionsMap
 struct to map new vertices (only appear on intersections) of the outline to it's edges
 
class  MR::PlanarTriangulation::BaseOutlineParameters
 
class  MR::PlanarTriangulation::OutlineParameters
 

Namespaces

namespace  MR
 
namespace  MR::PlanarTriangulation
 

Functions

MRMESH_API HolesVertIds MR::PlanarTriangulation::findHoleVertIdsByHoleEdges (const MeshTopology &tp, const std::vector< EdgePath > &holePaths)
 return vertices of holes that correspond internal contours representation of PlanarTriangulation
 
MRMESH_API Mesh MR::PlanarTriangulation::getOutlineMesh (const Contours2f &contours, IntersectionsMap *interMap=nullptr, const BaseOutlineParameters &params={})
 
MRMESH_API Mesh MR::PlanarTriangulation::getOutlineMesh (const Contours2d &contours, IntersectionsMap *interMap=nullptr, const BaseOutlineParameters &params={})
 
MRMESH_API Contours2f MR::PlanarTriangulation::getOutline (const Contours2f &contours, const OutlineParameters &params={})
 returns Contour representing outline if input contours
 
MRMESH_API Contours2f MR::PlanarTriangulation::getOutline (const Contours2d &contours, const OutlineParameters &params={})
 
MRMESH_API Mesh MR::PlanarTriangulation::triangulateContours (const Contours2d &contours, const HolesVertIds *holeVertsIds=nullptr)
 triangulate 2d contours only closed contours are allowed (first point of each contour should be the same as last point of the contour)
 
MRMESH_API Mesh MR::PlanarTriangulation::triangulateContours (const Contours2f &contours, const HolesVertIds *holeVertsIds=nullptr)
 
MRMESH_API std::optional< MeshMR::PlanarTriangulation::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 same as last point of the contour)
 
MRMESH_API std::optional< MeshMR::PlanarTriangulation::triangulateDisjointContours (const Contours2f &contours, const HolesVertIds *holeVertsIds=nullptr, std::vector< EdgePath > *outBoundaries=nullptr)