142 const std::function<
float(
int)>& offsetAtPoint,
SearchPathSettings searchSettings = {});
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
std::vector< OneMeshContour > OneMeshContours
Special data type for MR::cutMesh.
Definition MRMesh/MRIntersectionContour.h:10
MRMESH_API CutMeshResult cutMesh(Mesh &mesh, const OneMeshContours &contours, const CutMeshParameters ¶ms={})
Cuts mesh by given contours.
MRMESH_API Expected< OneMeshContours > 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...
Definition MRCameraOrientationPlugin.h:8
Contour3< float > Contour3f
Definition MRMesh/MRMeshFwd.h:375
MRMESH_API Expected< FaceBitSet > cutMeshByContours(Mesh &mesh, const Contours3f &contours, const AffineXf3f &xf={})
Contours3< float > Contours3f
Definition MRMesh/MRMeshFwd.h:383
MRMESH_API Expected< FaceBitSet > cutMeshByContour(Mesh &mesh, const Contour3f &contour, const AffineXf3f &xf={})
tl::expected< T, E > Expected
Definition MRExpected.h:25
MRMESH_API Expected< std::vector< EdgePath > > cutMeshByProjection(Mesh &mesh, const Contours3f &contours, const CutByProjectionSettings &settings)
Performs orthographic projection with of given contours to mesh and cut result lines,...
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMesh/MRMeshFwd.h:592
Settings structurer for cutMeshByProjection function.
Definition MRMesh/MRContoursCut.h:103
const AffineXf3f * cont2mesh
if set - used to transform contours form its local space to mesh local space
Definition MRMesh/MRContoursCut.h:108
Vector3f direction
direction of projection (in mesh space)
Definition MRMesh/MRContoursCut.h:105
Parameters of MR::cutMesh.
const SortIntersectionsData * sortData
Definition MRMesh/MRContoursCut.h:36
enum MR::CutMeshParameters::ForceFill None
FaceMap * new2OldMap
This is optional output - map from newly generated faces to old faces (N-1)
Definition MRMesh/MRContoursCut.h:38
NewEdgesMap * new2oldEdgesMap
Optional output map for each new edge introduced after cut maps edge from old topology or old face.
Definition MRMesh/MRContoursCut.h:51
ForceFill
Definition MRMesh/MRContoursCut.h:44
std::vector< EdgePath > resultCut
Paths of new edges on mesh, they represent same contours as input, but already cut.
Definition MRMesh/MRContoursCut.h:61
FaceBitSet fbsWithContourIntersections
Definition MRMesh/MRContoursCut.h:64
Definition MRMesh/MRMesh.h:23
Definition MRMesh/MRContoursCut.h:13
HashMap< UndirectedEdgeId, int > map
Definition MRMesh/MRContoursCut.h:21
UndirectedEdgeBitSet splitEdges
Definition MRMesh/MRContoursCut.h:16
Geo path search settings.
Definition MROneMeshContours.h:84
Definition MROneMeshContours.h:14