Go to the documentation of this file.
17 #ifndef GZ_COMMON_MESHCSG_HH_
18 #define GZ_COMMON_MESHCSG_HH_
20 #include <gz/math/Pose3.hh>
22 #include <gz/common/graphics/Export.hh>
37 class IGNITION_COMMON_GRAPHICS_VISIBLE
MeshCSG
54 public:
Mesh *CreateBoolean(
const Mesh *_m1,
const Mesh *_m2,
56 const gz::math::Pose3d &_offset = gz::math::Pose3d::Zero);
59 private:
void ConvertMeshToGTS(
const Mesh *mesh,
GtsSurface *surface);
65 private:
void MergeVertices(
GPtrArray * _vertices,
double _epsilon);
_GtsSurface GtsSurface
Definition: gz/common/GTSMeshUtils.hh:27
Forward declarations for the common classes.
_GtsSurface GtsSurface
Definition: gz/common/MeshCSG.hh:24
@ UNION
Definition: gz/common/MeshCSG.hh:40
BooleanOperation
An enumeration of the boolean operations.
Definition: gz/common/MeshCSG.hh:40
Creates CSG meshes.
Definition: gz/common/MeshCSG.hh:37
_GPtrArray GPtrArray
Definition: gz/common/MeshCSG.hh:26
A 3D mesh.
Definition: gz/common/Mesh.hh:41