17 #ifndef _MESHMANAGER_HH_
18 #define _MESHMANAGER_HH_
23 #include <boost/thread/mutex.hpp>
60 public:
const Mesh *Load(
const std::string &_filename);
64 public:
bool IsValidFilename(
const std::string &_filename);
71 public:
void GetMeshAABB(
const Mesh *_mesh,
77 public:
void GenSphericalTexCoord(
const Mesh *_mesh,
86 public:
void AddMesh(
Mesh *_mesh);
91 public:
const Mesh *GetMesh(
const std::string &_name)
const;
95 public:
bool HasMesh(
const std::string &_name)
const;
102 public:
void CreateSphere(
const std::string &_name,
float _radius,
103 int _rings,
int _segments);
109 public:
void CreateBox(
const std::string &_name,
119 public:
void CreateCylinder(
const std::string &_name,
131 public:
void CreateCone(
const std::string &_name,
147 public:
void CreateTube(
const std::string &_name,
159 public:
void CreatePlane(
const std::string &_name,
171 public:
void CreatePlane(
const std::string &_name,
185 private:
void Tesselate2DMesh(
SubMesh *_sm,
193 public:
void CreateCamera(
const std::string &_name,
float _scale);
196 public:
void CreateBoolean(
const std::string &_name,
const Mesh *_m1,
203 const Mesh *_m2,
const int _operation,
214 private: std::map<std::string, Mesh*> meshes;
217 private: std::vector<std::string> fileExtensions;
219 private: boost::mutex mutex;
A 3D mesh.
Definition: Mesh.hh:40
Encapsulates a position and rotation in three space.
Definition: Pose.hh:40
Generic double x, y vector.
Definition: Vector2d.hh:39
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
Singleton template class.
Definition: SingletonT.hh:33
A child mesh.
Definition: Mesh.hh:204
A plane and related functions.
Definition: Plane.hh:33
Class used to load Collada mesh files.
Definition: ColladaLoader.hh:42
Maintains and manages all meshes.
Definition: MeshManager.hh:47
static const Pose Zero
math::Pose(0, 0, 0, 0, 0, 0)
Definition: Pose.hh:43
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
Class used to load STL mesh files.
Definition: STLLoader.hh:40