MeshLib
 
Loading...
Searching...
No Matches
MRBooleanResultMapper.h
Go to the documentation of this file.
1#include "MRMeshFwd.h"
2#pragma managed( push, off )
4#pragma managed( pop )
5
7
8public ref class BooleanMaps
9{
10public:
12
21 property bool Identity { bool get(); }
22
23internal:
25
26private:
27 FaceMap^ cut2origin_;
28 FaceMap^ cut2newFaces_;
29 VertMap^ old2newVerts_;
30
32};
33
35public enum class MapObject
36{
37 A,
38 B
39};
40
42public ref class BooleanResultMapper
43{
44public:
53
57
58internal:
60 MR::BooleanResultMapper* getMapper() { return mapper_; }
61
62private:
64 array<BooleanMaps^>^ maps_;
65};
66
67
68
MapObject
input object index enum
Definition MRBooleanResultMapper.h:36
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
ReadOnlyCollection< VertId > VertMapReadOnly
Definition MRDotNet/MRMeshFwd.h:85
List< VertId > VertMap
Definition MRDotNet/MRMeshFwd.h:84
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
ReadOnlyCollection< FaceId > FaceMapReadOnly
Definition MRDotNet/MRMeshFwd.h:88
List< FaceId > FaceMap
Definition MRDotNet/MRMeshFwd.h:87
Definition MRDotNet/MRBitSet.h:39
Definition MRBooleanResultMapper.h:9
property FaceMapReadOnly Cut2Origin
Definition MRBooleanResultMapper.h:15
property FaceMapReadOnly Cut2NewFaces
"after cut" faces to "after stitch" faces (1-1)
Definition MRBooleanResultMapper.h:17
property bool Identity
old topology indexes are valid if true
Definition MRBooleanResultMapper.h:21
property VertMapReadOnly Old2NewVerts
"origin" vertices to "after stitch" vertices (1-1)
Definition MRBooleanResultMapper.h:19
this class allows to map faces, vertices and edges of mesh A and mesh B input of MeshBoolean to resul...
Definition MRBooleanResultMapper.h:43
VertBitSet VertMap(VertBitSet^ oldBS, MapObject obj)
returns vertices bitset of result mesh corresponding input one
FaceBitSet FilteredOldFaceBitSet(FaceBitSet^ oldBS, MapObject obj)
returns updated oldBS leaving only faces that has corresponding ones in result mesh
MR::BooleanResultMapper * getMapper()
Definition MRBooleanResultMapper.h:60
BooleanMaps GetMaps(MapObject obj)
FaceBitSet FaceMap(FaceBitSet^ oldBS, MapObject obj)
returns faces bitset of result mesh corresponding input one
FaceBitSet NewFaces()
returns only new faces that are created during boolean operation
Definition MRMesh/MRBooleanOperation.h:76
Structure to map old mesh BitSets to new.