109 const std::vector<EdgePath>& cutEdgesA,
const std::vector<EdgePath>& cutEdgesB,
112 bool mergeAllNonIntersectingComponents =
false,
List< VertId > VertMap
Definition MRDotNet/MRMeshFwd.h:84
List< FaceId > FaceMap
Definition MRDotNet/MRMeshFwd.h:87
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRDotNet/MRBitSet.h:39
this class allows to map faces, vertices and edges of mesh A and mesh B input of MeshBoolean to resul...
Definition MRBooleanResultMapper.h:43
MRMESH_API Expected< Mesh > doBooleanOperation(Mesh &&meshACut, Mesh &&meshBCut, const std::vector< EdgePath > &cutEdgesA, const std::vector< EdgePath > &cutEdgesB, BooleanOperation operation, const AffineXf3f *rigidB2A=nullptr, BooleanResultMapper *mapper=nullptr, bool mergeAllNonIntersectingComponents=false, const BooleanInternalParameters &intParams={})
BooleanOperation
Definition MRMesh/MRBooleanOperation.h:20
Definition MRCameraOrientationPlugin.h:7
tl::expected< T, E > Expected
Definition MRExpected.h:49
Parameters will be useful if specified.
Definition MRMesh/MRBooleanOperation.h:96
const Mesh * originalMeshA
Instance of original mesh with tree for better speed.
Definition MRMesh/MRBooleanOperation.h:98
std::vector< EdgeLoop > * optionalOutCut
Optional output cut edges of booleaned meshes.
Definition MRMesh/MRBooleanOperation.h:102
const Mesh * originalMeshB
Instance of original mesh with tree for better speed.
Definition MRMesh/MRBooleanOperation.h:100
Definition MRMesh/MRBooleanOperation.h:76
WholeEdgeMap old2newEdges
"origin" edges to "after stitch" edges (1-1)
Definition MRMesh/MRBooleanOperation.h:83
FaceMap cut2newFaces
"after cut" faces to "after stitch" faces (1-1)
Definition MRMesh/MRBooleanOperation.h:81
FaceMap cut2origin
Definition MRMesh/MRBooleanOperation.h:79
bool identity
old topology indexes are valid if true
Definition MRMesh/MRBooleanOperation.h:87
VertMap old2newVerts
"origin" vertices to "after stitch" vertices (1-1)
Definition MRMesh/MRBooleanOperation.h:85
Structure to map old mesh BitSets to new.
BooleanResultMapper()=default
std::array< Maps, size_t(MapObject::Count)> maps
Definition MRMesh/MRBooleanOperation.h:89
MRMESH_API FaceBitSet map(const FaceBitSet &oldBS, MapObject obj) const
Returns faces bitset of result mesh corresponding input one.
const Maps & getMaps(MapObject index) const
Definition MRMesh/MRBooleanOperation.h:91
MRMESH_API FaceBitSet newFaces() const
Returns only new faces that are created during boolean operation.
MRMESH_API FaceBitSet filteredOldFaceBitSet(const FaceBitSet &oldBS, MapObject obj)
returns updated oldBS leaving only faces that has corresponding ones in result mesh
MRMESH_API EdgeBitSet map(const EdgeBitSet &oldBS, MapObject obj) const
Returns edges bitset of result mesh corresponding input one.
MRMESH_API VertBitSet map(const VertBitSet &oldBS, MapObject obj) const
Returns vertices bitset of result mesh corresponding input one.
MapObject
Input object index enum.
Definition MRMesh/MRBooleanOperation.h:59
Definition MRMesh/MRMesh.h:23