MeshManager.hh
Go to the documentation of this file.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: SuppressWarning.hh:64
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: SuppressWarning.hh:67
void MeshAABB(const Mesh *_mesh, ignition::math::Vector3d &_center, ignition::math::Vector3d &_min_xyz, ignition::math::Vector3d &_max_xyz)
Get mesh aabb and center.
void CreateCamera(const std::string &_name, const float _scale)
Create a Camera mesh.
void CreateCapsule(const std::string &_name, const double radius, const double length, const unsigned int _rings, const unsigned int _segments)
Create a capsule mesh.
const Mesh * Load(const std::string &_filename)
Load a mesh from a file. The mesh will be searched on the global SystemPaths instance provided by Uti...
void CreateBoolean(const std::string &_name, 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.
void CreatePlane(const std::string &_name, const ignition::math::Planed &_plane, const ignition::math::Vector2d &_segments, const ignition::math::Vector2d &_uvTile)
Create mesh for a plane.
void CreatePlane(const std::string &_name, const ignition::math::Vector3d &_normal, const double _d, const ignition::math::Vector2d &_size, const ignition::math::Vector2d &_segments, const ignition::math::Vector2d &_uvTile)
Create mesh for a plane.
void Export(const Mesh *_mesh, const std::string &_filename, const std::string &_extension, bool _exportTextures=false)
Export a mesh to a file.
void CreateBox(const std::string &_name, const ignition::math::Vector3d &_sides, const ignition::math::Vector2d &_uvCoords)
Create a Box mesh.
bool IsValidFilename(const std::string &_filename)
Checks a path extension against the list of valid extensions.
bool HasMesh(const std::string &_name) const
Return true if the mesh exists.
void CreateExtrudedPolyline(const std::string &_name, const std::vector< std::vector< ignition::math::Vector2d > > &_vertices, const double _height)
Create an extruded mesh from polylines. The polylines are assumed to be closed and non-intersecting....
void CreateCylinder(const std::string &_name, const float _radius, const float _height, const int _rings, const int _segments)
Create a cylinder mesh.
void CreateCone(const std::string &_name, const float _radius, const float _height, const int _rings, const int _segments)
Create a cone mesh.
void CreateEllipsoid(const std::string &_name, const ignition::math::Vector3d &_radii, const unsigned int _rings, const unsigned int _segments)
Create a ellipsoid mesh.
void CreateTube(const std::string &_name, const float _innerRadius, const float _outterRadius, const float _height, const int _rings, const int _segments, const double _arc=2.0 *IGN_PI)
Create a tube mesh.
void GenSphericalTexCoord(const Mesh *_mesh, const ignition::math::Vector3d &_center)
generate spherical texture coordinates
void CreateSphere(const std::string &_name, const float _radius, const int _rings, const int _segments)
Create a sphere mesh.
const Mesh * MeshByName(const std::string &_name) const
Get a mesh by name.
static const Pose3< T > Zero
Forward declarations for the common classes.