MeshLib C Docs
Loading...
Searching...
No Matches
MRBooleanOperation.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stddef.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_AffineXf3f MR_AffineXf3f; // Defined in `#include <MRCMesh/MRAffineXf.h>`.
14typedef struct MR_CoordinateConverters MR_CoordinateConverters; // Defined in `#include <MRCMesh/MRPrecisePredicates3.h>`.
15typedef struct MR_EdgeBitSet MR_EdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
16typedef struct MR_FaceBitSet MR_FaceBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
17typedef struct MR_FaceMap MR_FaceMap; // Defined in `#include <MRCMesh/MRVector.h>`.
18typedef struct MR_Mesh MR_Mesh; // Defined in `#include <MRCMesh/MRMesh.h>`.
19typedef struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
20typedef struct MR_VertBitSet MR_VertBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
21typedef struct MR_VertMap MR_VertMap; // Defined in `#include <MRCMesh/MRVector.h>`.
22typedef struct MR_WholeEdgeMap MR_WholeEdgeMap; // Defined in `#include <MRCMesh/MRVector.h>`.
23typedef struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string; // Defined in `#include <MRCMisc/expected_MR_Mesh_std_string.h>`.
24typedef struct MR_std_array_MR_BooleanResultMapper_Maps_2 MR_std_array_MR_BooleanResultMapper_Maps_2; // Defined in `#include <MRCMisc/std_array_MR_BooleanResultMapper_Maps_2.h>`.
25typedef struct MR_std_vector_std_vector_MR_EdgeId MR_std_vector_std_vector_MR_EdgeId; // Defined in `#include <MRCMisc/std_vector_std_vector_MR_EdgeId.h>`.
26
27
62
70
74
87
92
98
104
110
114
119
123
127
132
135
138
145
152
159
166
173
179
186
192
197
205
213
221
228
235
242
249
256
263
270
277
284
288
293
301MRC_API MR_BooleanResultMapper_Maps *MR_BooleanResultMapper_Maps_ConstructFrom(MR_PassBy cut2origin_pass_by, MR_FaceMap *cut2origin, MR_PassBy cut2newFaces_pass_by, MR_FaceMap *cut2newFaces, MR_PassBy old2newEdges_pass_by, MR_WholeEdgeMap *old2newEdges, MR_PassBy old2newVerts_pass_by, MR_VertMap *old2newVerts);
302
306
310
315
318
321
328
335
342
349
356
363
370
377
384
391
398
404
411
419
427
435
439
444
452MRC_API MR_BooleanInternalParameters *MR_BooleanInternalParameters_ConstructFrom(const MR_Mesh *originalMeshA, const MR_Mesh *originalMeshB, MR_std_vector_std_vector_MR_EdgeId *optionalOutCut, bool graphCutSeparation, const MR_CoordinateConverters *converters);
453
457
461
467
470
473
481
504MRC_API MR_expected_MR_Mesh_std_string *MR_doBooleanOperation(MR_Mesh *meshACut, MR_Mesh *meshBCut, MR_std_vector_std_vector_MR_EdgeId *cutEdgesA, MR_std_vector_std_vector_MR_EdgeId *cutEdgesB, MR_BooleanOperation operation, const MR_AffineXf3f *rigidB2A, MR_BooleanResultMapper *mapper, const bool *mergeAllNonIntersectingComponents, const MR_BooleanInternalParameters *intParams);
505
506#ifdef __cplusplus
507} // extern "C"
508#endif
struct MR_WholeEdgeMap MR_WholeEdgeMap
Definition MR2DContoursTriangulation.h:17
struct MR_std_vector_std_vector_MR_EdgeId MR_std_vector_std_vector_MR_EdgeId
Definition MR2DContoursTriangulation.h:21
struct MR_UndirectedEdgeBitSet MR_UndirectedEdgeBitSet
Definition MRAABBTreeBase.h:25
struct MR_VertBitSet MR_VertBitSet
Definition MRAABBTree.h:26
struct MR_FaceBitSet MR_FaceBitSet
Definition MRAABBTree.h:17
struct MR_EdgeBitSet MR_EdgeBitSet
Definition MRBitSet.h:89
struct MR_VertMap MR_VertMap
Definition MRBitSet.h:43
struct MR_FaceMap MR_FaceMap
Definition MRBitSet.h:27
MRC_API MR_BooleanInternalParameters * MR_BooleanInternalParameters_AssignFromAnother(MR_BooleanInternalParameters *_this, const MR_BooleanInternalParameters *_other)
MRC_API MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_ConstructFromAnother(MR_PassBy _other_pass_by, MR_BooleanResultMapper_Maps *_other)
MRC_API const MR_BooleanInternalParameters * MR_BooleanInternalParameters_OffsetPtr(const MR_BooleanInternalParameters *ptr, ptrdiff_t i)
MRC_API const MR_Mesh *const * MR_BooleanInternalParameters_Get_originalMeshA(const MR_BooleanInternalParameters *_this)
MRC_API MR_std_array_MR_BooleanResultMapper_Maps_2 * MR_BooleanResultMapper_GetMutable_maps(MR_BooleanResultMapper *_this)
struct MR_CoordinateConverters MR_CoordinateConverters
Definition MRBooleanOperation.h:14
MR_BooleanResultMapper_MapObject
Input object index enum.
Definition MRBooleanOperation.h:65
@ MR_BooleanResultMapper_MapObject_A
Definition MRBooleanOperation.h:66
@ MR_BooleanResultMapper_MapObject_Count
Definition MRBooleanOperation.h:68
@ MR_BooleanResultMapper_MapObject_B
Definition MRBooleanOperation.h:67
MRC_API const MR_Mesh *const * MR_BooleanInternalParameters_Get_originalMeshB(const MR_BooleanInternalParameters *_this)
MR_BooleanOperation
Definition MRBooleanOperation.h:34
@ MR_BooleanOperation_Union
Definition MRBooleanOperation.h:49
@ MR_BooleanOperation_DifferenceBA
Definition MRBooleanOperation.h:55
@ MR_BooleanOperation_Count
Definition MRBooleanOperation.h:60
@ MR_BooleanOperation_InsideB
Definition MRBooleanOperation.h:40
@ MR_BooleanOperation_Intersection
Definition MRBooleanOperation.h:52
@ MR_BooleanOperation_OutsideB
Definition MRBooleanOperation.h:46
@ MR_BooleanOperation_InsideA
Definition MRBooleanOperation.h:37
@ MR_BooleanOperation_DifferenceAB
not a valid operation
Definition MRBooleanOperation.h:58
@ MR_BooleanOperation_OutsideA
Definition MRBooleanOperation.h:43
MRC_API MR_expected_MR_Mesh_std_string * MR_doBooleanOperation(MR_Mesh *meshACut, MR_Mesh *meshBCut, MR_std_vector_std_vector_MR_EdgeId *cutEdgesA, MR_std_vector_std_vector_MR_EdgeId *cutEdgesB, MR_BooleanOperation operation, const MR_AffineXf3f *rigidB2A, MR_BooleanResultMapper *mapper, const bool *mergeAllNonIntersectingComponents, const MR_BooleanInternalParameters *intParams)
MRC_API bool * MR_BooleanInternalParameters_GetMutable_graphCutSeparation(MR_BooleanInternalParameters *_this)
MRC_API MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_DefaultConstructArray(size_t num_elems)
MRC_API const MR_std_array_MR_BooleanResultMapper_Maps_2 * MR_BooleanResultMapper_Get_maps(const MR_BooleanResultMapper *_this)
MRC_API MR_BooleanResultMapper * MR_BooleanResultMapper_AssignFromAnother(MR_BooleanResultMapper *_this, MR_PassBy _other_pass_by, MR_BooleanResultMapper *_other)
struct MR_BooleanInternalParameters MR_BooleanInternalParameters
Definition MRBooleanOperation.h:91
MRC_API void MR_BooleanResultMapper_Maps_Set_old2newVerts(MR_BooleanResultMapper_Maps *_this, MR_PassBy value_pass_by, MR_VertMap *value)
MRC_API void MR_BooleanResultMapper_Set_maps(MR_BooleanResultMapper *_this, MR_PassBy value_pass_by, MR_std_array_MR_BooleanResultMapper_Maps_2 *value)
MRC_API void MR_BooleanInternalParameters_Set_graphCutSeparation(MR_BooleanInternalParameters *_this, bool value)
MRC_API MR_FaceMap * MR_BooleanResultMapper_Maps_GetMutable_cut2origin(MR_BooleanResultMapper_Maps *_this)
MRC_API void MR_BooleanResultMapper_Destroy(const MR_BooleanResultMapper *_this)
Destroys a heap-allocated instance of MR_BooleanResultMapper. Does nothing if the pointer is null.
MRC_API void MR_BooleanInternalParameters_DestroyArray(const MR_BooleanInternalParameters *_this)
Destroys a heap-allocated array of MR_BooleanInternalParameters. Does nothing if the pointer is null.
struct MR_BooleanResultMapper MR_BooleanResultMapper
Definition MRBooleanOperation.h:86
MRC_API MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_ConstructFrom(MR_PassBy cut2origin_pass_by, MR_FaceMap *cut2origin, MR_PassBy cut2newFaces_pass_by, MR_FaceMap *cut2newFaces, MR_PassBy old2newEdges_pass_by, MR_WholeEdgeMap *old2newEdges, MR_PassBy old2newVerts_pass_by, MR_VertMap *old2newVerts)
MRC_API MR_std_vector_std_vector_MR_EdgeId *const * MR_BooleanInternalParameters_Get_optionalOutCut(const MR_BooleanInternalParameters *_this)
MRC_API MR_BooleanResultMapper * MR_BooleanResultMapper_DefaultConstruct(void)
struct MR_std_array_MR_BooleanResultMapper_Maps_2 MR_std_array_MR_BooleanResultMapper_Maps_2
Definition MRBooleanOperation.h:24
MRC_API const MR_FaceMap * MR_BooleanResultMapper_Maps_Get_cut2newFaces(const MR_BooleanResultMapper_Maps *_this)
MRC_API MR_BooleanResultMapper * MR_BooleanResultMapper_DefaultConstructArray(size_t num_elems)
MRC_API MR_VertBitSet * MR_BooleanResultMapper_map_MR_VertBitSet(const MR_BooleanResultMapper *_this, const MR_VertBitSet *oldBS, MR_BooleanResultMapper_MapObject obj)
MRC_API const bool * MR_BooleanInternalParameters_Get_graphCutSeparation(const MR_BooleanInternalParameters *_this)
MRC_API MR_BooleanResultMapper * MR_BooleanResultMapper_OffsetMutablePtr(MR_BooleanResultMapper *ptr, ptrdiff_t i)
MRC_API void MR_BooleanInternalParameters_Set_optionalOutCut(MR_BooleanInternalParameters *_this, MR_std_vector_std_vector_MR_EdgeId *value)
struct MR_BooleanResultMapper_Maps MR_BooleanResultMapper_Maps
Definition MRBooleanOperation.h:73
MRC_API void MR_BooleanInternalParameters_Destroy(const MR_BooleanInternalParameters *_this)
Destroys a heap-allocated instance of MR_BooleanInternalParameters. Does nothing if the pointer is nu...
MRC_API MR_BooleanInternalParameters * MR_BooleanInternalParameters_ConstructFrom(const MR_Mesh *originalMeshA, const MR_Mesh *originalMeshB, MR_std_vector_std_vector_MR_EdgeId *optionalOutCut, bool graphCutSeparation, const MR_CoordinateConverters *converters)
MRC_API void MR_BooleanInternalParameters_Set_originalMeshA(MR_BooleanInternalParameters *_this, const MR_Mesh *value)
MRC_API MR_FaceBitSet * MR_BooleanResultMapper_map_MR_FaceBitSet(const MR_BooleanResultMapper *_this, const MR_FaceBitSet *oldBS, MR_BooleanResultMapper_MapObject obj)
MRC_API const MR_FaceMap * MR_BooleanResultMapper_Maps_Get_cut2origin(const MR_BooleanResultMapper_Maps *_this)
MRC_API MR_EdgeBitSet * MR_BooleanResultMapper_map_MR_EdgeBitSet(const MR_BooleanResultMapper *_this, const MR_EdgeBitSet *oldBS, MR_BooleanResultMapper_MapObject obj)
MRC_API MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_AssignFromAnother(MR_BooleanResultMapper_Maps *_this, MR_PassBy _other_pass_by, MR_BooleanResultMapper_Maps *_other)
MRC_API void MR_BooleanResultMapper_Maps_Set_cut2origin(MR_BooleanResultMapper_Maps *_this, MR_PassBy value_pass_by, MR_FaceMap *value)
MRC_API void MR_BooleanResultMapper_Maps_DestroyArray(const MR_BooleanResultMapper_Maps *_this)
Destroys a heap-allocated array of MR_BooleanResultMapper_Maps. Does nothing if the pointer is null.
MRC_API const MR_Mesh ** MR_BooleanInternalParameters_GetMutable_originalMeshA(MR_BooleanInternalParameters *_this)
MRC_API MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_OffsetMutablePtr(MR_BooleanResultMapper_Maps *ptr, ptrdiff_t i)
MRC_API const MR_VertMap * MR_BooleanResultMapper_Maps_Get_old2newVerts(const MR_BooleanResultMapper_Maps *_this)
MRC_API void MR_BooleanResultMapper_Maps_Destroy(const MR_BooleanResultMapper_Maps *_this)
Destroys a heap-allocated instance of MR_BooleanResultMapper_Maps. Does nothing if the pointer is nul...
MRC_API const MR_CoordinateConverters *const * MR_BooleanInternalParameters_Get_converters(const MR_BooleanInternalParameters *_this)
MRC_API MR_VertMap * MR_BooleanResultMapper_Maps_GetMutable_old2newVerts(MR_BooleanResultMapper_Maps *_this)
MRC_API MR_FaceMap * MR_BooleanResultMapper_getNew2OldFaceMap(const MR_BooleanResultMapper *_this, MR_BooleanResultMapper_MapObject obj)
MRC_API MR_BooleanInternalParameters * MR_BooleanInternalParameters_ConstructFromAnother(const MR_BooleanInternalParameters *_other)
MRC_API MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_DefaultConstruct(void)
MRC_API MR_std_vector_std_vector_MR_EdgeId ** MR_BooleanInternalParameters_GetMutable_optionalOutCut(MR_BooleanInternalParameters *_this)
MRC_API MR_BooleanInternalParameters * MR_BooleanInternalParameters_DefaultConstructArray(size_t num_elems)
MRC_API MR_FaceMap * MR_BooleanResultMapper_Maps_GetMutable_cut2newFaces(MR_BooleanResultMapper_Maps *_this)
MRC_API void MR_BooleanInternalParameters_Set_originalMeshB(MR_BooleanInternalParameters *_this, const MR_Mesh *value)
MRC_API MR_WholeEdgeMap * MR_BooleanResultMapper_Maps_GetMutable_old2newEdges(MR_BooleanResultMapper_Maps *_this)
MRC_API const MR_Mesh ** MR_BooleanInternalParameters_GetMutable_originalMeshB(MR_BooleanInternalParameters *_this)
MRC_API void MR_BooleanInternalParameters_Set_converters(MR_BooleanInternalParameters *_this, const MR_CoordinateConverters *value)
MRC_API MR_UndirectedEdgeBitSet * MR_BooleanResultMapper_map_MR_UndirectedEdgeBitSet(const MR_BooleanResultMapper *_this, const MR_UndirectedEdgeBitSet *oldBS, MR_BooleanResultMapper_MapObject obj)
MRC_API const MR_BooleanResultMapper * MR_BooleanResultMapper_OffsetPtr(const MR_BooleanResultMapper *ptr, ptrdiff_t i)
MRC_API MR_BooleanInternalParameters * MR_BooleanInternalParameters_DefaultConstruct(void)
MRC_API void MR_BooleanResultMapper_Maps_Set_cut2newFaces(MR_BooleanResultMapper_Maps *_this, MR_PassBy value_pass_by, MR_FaceMap *value)
MRC_API void MR_BooleanResultMapper_DestroyArray(const MR_BooleanResultMapper *_this)
Destroys a heap-allocated array of MR_BooleanResultMapper. Does nothing if the pointer is null.
MRC_API const MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_Maps_OffsetPtr(const MR_BooleanResultMapper_Maps *ptr, ptrdiff_t i)
MRC_API const MR_CoordinateConverters ** MR_BooleanInternalParameters_GetMutable_converters(MR_BooleanInternalParameters *_this)
MRC_API const MR_WholeEdgeMap * MR_BooleanResultMapper_Maps_Get_old2newEdges(const MR_BooleanResultMapper_Maps *_this)
MRC_API MR_FaceBitSet * MR_BooleanResultMapper_filteredOldFaceBitSet(const MR_BooleanResultMapper *_this, const MR_FaceBitSet *oldBS, MR_BooleanResultMapper_MapObject obj)
MRC_API const MR_BooleanResultMapper_Maps * MR_BooleanResultMapper_getMaps(const MR_BooleanResultMapper *_this, MR_BooleanResultMapper_MapObject index)
MRC_API MR_BooleanResultMapper * MR_BooleanResultMapper_ConstructFromAnother(MR_PassBy _other_pass_by, MR_BooleanResultMapper *_other)
MRC_API MR_BooleanInternalParameters * MR_BooleanInternalParameters_OffsetMutablePtr(MR_BooleanInternalParameters *ptr, ptrdiff_t i)
MRC_API MR_FaceBitSet * MR_BooleanResultMapper_newFaces(const MR_BooleanResultMapper *_this)
MRC_API void MR_BooleanResultMapper_Maps_Set_old2newEdges(MR_BooleanResultMapper_Maps *_this, MR_PassBy value_pass_by, MR_WholeEdgeMap *value)
struct MR_expected_MR_Mesh_std_string MR_expected_MR_Mesh_std_string
Definition MRCtm.h:25
struct MR_Mesh MR_Mesh
Definition MRCtm.h:17
MR_PassBy
Definition common.h:13
#define MRC_API
Definition include/MRCMisc/exports.h:11
Definition MRAffineXf.h:39