- gazebo
- common
- MeshManager
Maintains and manages all meshes. More...
#include <MeshManager.hh>

Public Member Functions | |
| const Mesh * | Load (const std::string &filename) |
| Load a mesh from a file. | |
| bool | IsValidFilename (const std::string &filename) |
| Return true if the file extension is loadable. | |
| void | SetMeshCenter (const Mesh *mesh, math::Vector3 center) |
| set mesh center to be aabb center | |
| void | GetMeshAABB (const Mesh *mesh, math::Vector3 ¢er, math::Vector3 &min_xyz, math::Vector3 &max_xyz) |
| get mesh aabb and center | |
| void | GenSphericalTexCoord (const Mesh *mesh, math::Vector3 center) |
| generate spherical texture coordinates | |
| void | AddMesh (Mesh *mesh) |
| Add a mesh to the manager. | |
| const Mesh * | GetMesh (const std::string &name) const |
| Get a mesh by name. | |
| bool | HasMesh (const std::string &name) const |
| Return true if the mesh exists. | |
| void | CreateSphere (const std::string &name, float radius, int rings, int segments) |
| Create a sphere mesh. | |
| void | CreateBox (const std::string &name, const math::Vector3 &sides, const math::Vector2d &uvCoords) |
| Create a Box mesh. | |
| void | CreateCylinder (const std::string &name, float radius, float height, int rings, int segments) |
| Create a cylinder mesh. | |
| void | CreateCone (const std::string &name, float radius, float height, int rings, int segments) |
| Create a cone mesh. | |
| void | CreateTube (const std::string &name, float innerRadius, float outterRadius, float height, int rings, int segments) |
| Create a tube mesh. | |
| void | CreatePlane (const std::string &name, const math::Plane &plane, const math::Vector2d &segments, const math::Vector2d &uvTile) |
| void | CreatePlane (const std::string &name, const math::Vector3 &normal, double d, const math::Vector2d &size, const math::Vector2d &segments, const math::Vector2d &uvTile) |
| void | CreateCamera (const std::string &name, float scale) |
| Create a Camera mesh. | |
Maintains and manages all meshes.
1.7.5.1