MeshLib
 
Loading...
Searching...
No Matches
MRMeshC/MRMeshBoolean.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRAffineXf.h"
6
8
10typedef struct MRBooleanParameters
11{
14 // TODO: mapper
15 // TODO: outPreCutA
16 // TODO: outPreCutB
17 // TODO: outCutEdges
24
27
29typedef struct MRBooleanResult
30{
33 // TODO: meshABadContourFaces
34 // TODO: meshBBadContourFaces
38
43MRMESHC_API MRBooleanResult mrBoolean( const MRMesh* meshA, const MRMesh* meshB, MRBooleanOperation operation, const MRBooleanParameters* params );
44
MRBooleanOperation
Available CSG operations.
Definition MRMeshC/MRBooleanOperation.h:9
MRMESHC_API MRBooleanParameters mrBooleanParametersNew(void)
initializes a default instance
struct MRBooleanResult MRBooleanResult
This structure store result mesh of mrBoolean or some error info.
MRMESHC_API MRBooleanResult mrBoolean(const MRMesh *meshA, const MRMesh *meshB, MRBooleanOperation operation, const MRBooleanParameters *params)
MR_EXTERN_C_BEGIN struct MRBooleanParameters MRBooleanParameters
optional parameters for mrBoolean
#define MR_EXTERN_C_BEGIN
Definition MRMeshC/MRMeshFwd.h:26
bool(* MRProgressCallback)(float)
Definition MRMeshC/MRMeshFwd.h:51
#define MR_EXTERN_C_END
Definition MRMeshC/MRMeshFwd.h:27
struct MRMesh MRMesh
Definition MRMeshC/MRMeshFwd.h:42
typedefMR_EXTERN_C_BEGIN struct MRString MRString
Definition MRMeshC/MRMeshFwd.h:32
#define MRMESHC_API
Definition MRMeshC/MRMeshFwd.h:19
affine transformation: y = A*x + b, where A in VxV, and b in V
Definition MRMeshC/MRAffineXf.h:10
optional parameters for mrBoolean
Definition MRMeshC/MRMeshBoolean.h:11
MRProgressCallback cb
Progress callback.
Definition MRMeshC/MRMeshBoolean.h:22
bool mergeAllNonIntersectingComponents
Definition MRMeshC/MRMeshBoolean.h:20
const MRAffineXf3f * rigidB2A
Transform from mesh B space to mesh A space.
Definition MRMeshC/MRMeshBoolean.h:13
This structure store result mesh of mrBoolean or some error info.
Definition MRMeshC/MRMeshBoolean.h:30
MRString * errorString
Holds error message, empty if boolean succeed.
Definition MRMeshC/MRMeshBoolean.h:36
MRMesh * mesh
Result mesh of boolean operation, if error occurred it would be empty.
Definition MRMeshC/MRMeshBoolean.h:32