MeshLib C++ Docs
Loading...
Searching...
No Matches
MRContoursCut.h File Reference
#include "MRBitSet.h"
#include "MRAffineXf3.h"
#include "MROneMeshContours.h"

Go to the source code of this file.

Classes

struct  MR::NewEdgesMap
 
struct  MR::CutMeshParameters
 Parameters of MR::cutMesh. More...
 
struct  MR::CutMeshResult
 
struct  MR::CutByProjectionSettings
 Settings structurer for cutMeshByProjection function. More...
 

Namespaces

namespace  MR
 

Functions

MRMESH_API CutMeshResult MR::cutMesh (Mesh &mesh, const OneMeshContours &contours, const CutMeshParameters &params={})
 Cuts mesh by given contours.
 
MRMESH_API Expected< FaceBitSet > MR::cutMeshByContour (Mesh &mesh, const Contour3f &contour, const AffineXf3f &xf={})
 
MRMESH_API Expected< FaceBitSet > MR::cutMeshByContours (Mesh &mesh, const Contours3f &contours, const AffineXf3f &xf={})
 
MRMESH_API Expected< std::vector< EdgePath > > MR::cutMeshByProjection (Mesh &mesh, const Contours3f &contours, const CutByProjectionSettings &settings)
 Performs orthographic projection with of given contours to mesh and cut result lines, fails if any point of contours has missed mesh on projection stage or cut contours contains self-intersections.
 
MRMESH_API Expected< OneMeshContoursMR::convertMeshTriPointsSurfaceOffsetToMeshContours (const Mesh &mesh, const std::vector< MeshTriPoint > &surfaceLine, float offset, SearchPathSettings searchSettings={})
 Makes continuous contour by iso-line from mesh tri points, if first and last meshTriPoint is the same, makes closed contour.
 
MRMESH_API Expected< OneMeshContoursMR::convertMeshTriPointsSurfaceOffsetToMeshContours (const Mesh &mesh, const std::vector< MeshTriPoint > &surfaceLine, const std::function< float(int)> &offsetAtPoint, SearchPathSettings searchSettings={})
 Makes continuous contour by iso-line from mesh tri points, if first and last meshTriPoint is the same, makes closed contour.