Creates CSG meshes. More...
#include <common/common.hh>
Public Types | |
enum | BooleanOperation { UNION, INTERSECTION, DIFFERENCE } |
An enumeration of the boolean operations. More... | |
Public Member Functions | |
MeshCSG () | |
Constructor. More... | |
virtual | ~MeshCSG () |
Destructor. More... | |
Mesh * | CreateBoolean (const Mesh *_m1, const Mesh *_m2, const int _operation, const math::Pose &_offset=math::Pose::Zero) |
Create a boolean mesh from two meshes. More... | |
Creates CSG meshes.
gazebo::common::MeshCSG::MeshCSG | ( | ) |
Constructor.
|
virtual |
Destructor.
Mesh* gazebo::common::MeshCSG::CreateBoolean | ( | const Mesh * | _m1, |
const Mesh * | _m2, | ||
const int | _operation, | ||
const math::Pose & | _offset = math::Pose::Zero |
||
) |
Create a boolean mesh from two meshes.
[in] | _m1 | the parent mesh in the boolean operation |
[in] | _m2 | the child mesh in the boolean operation |
[in] | _operation | the boolean operation applied to the two meshes |
[in] | _offset | _m2's pose offset from _m1 |