Public Types | Public Member Functions | List of all members
gazebo::common::MeshCSG Class Reference

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...
 
MeshCreateBoolean (const Mesh *_m1, const Mesh *_m2, const int _operation, const ignition::math::Pose3d &_offset=ignition::math::Pose3d::Zero)
 Create a boolean mesh from two meshes. More...
 

Detailed Description

Creates CSG meshes.

Member Enumeration Documentation

An enumeration of the boolean operations.

Enumerator
UNION 
INTERSECTION 
DIFFERENCE 

Constructor & Destructor Documentation

gazebo::common::MeshCSG::MeshCSG ( )

Constructor.

virtual gazebo::common::MeshCSG::~MeshCSG ( )
virtual

Destructor.

Member Function Documentation

Mesh* gazebo::common::MeshCSG::CreateBoolean ( const Mesh _m1,
const Mesh _m2,
const int  _operation,
const ignition::math::Pose3d &  _offset = ignition::math::Pose3d::Zero 
)

Create a boolean mesh from two meshes.

Parameters
[in]_m1the parent mesh in the boolean operation
[in]_m2the child mesh in the boolean operation
[in]_operationthe boolean operation applied to the two meshes
[in]_offset_m2's pose offset from _m1
Returns
a pointer to the created mesh

The documentation for this class was generated from the following file: