18 #ifndef IGNITION_COMMON_MESHCSG_HH_
19 #define IGNITION_COMMON_MESHCSG_HH_
21 #include <gz/math/Pose3.hh>
23 #include <gz/common/config.hh>
24 #include <gz/common/graphics/Export.hh>
39 class IGNITION_COMMON_GRAPHICS_VISIBLE
MeshCSG
61 private:
void ConvertMeshToGTS(
const Mesh *mesh,
GtsSurface *surface);
67 private:
void MergeVertices(
GPtrArray * _vertices,
double _epsilon);
Creates CSG meshes.
Definition: gz/common/MeshCSG.hh:40
BooleanOperation
An enumeration of the boolean operations.
Definition: gz/common/MeshCSG.hh:42
Mesh * CreateBoolean(const Mesh *_m1, const Mesh *_m2, const int _operation, const math::Pose3d &_offset=math::Pose3d::Zero)
Create a boolean mesh from two meshes.
virtual ~MeshCSG()
Destructor.
A 3D mesh.
Definition: gz/common/Mesh.hh:43
static const Pose3< T > Zero
_GtsSurface GtsSurface
Definition: gz/common/GTSMeshUtils.hh:29
_GtsSurface GtsSurface
Definition: gz/common/MeshCSG.hh:26
_GPtrArray GPtrArray
Definition: gz/common/MeshCSG.hh:28
Forward declarations for the common classes.