Mesh represents a mesh shape, and is usually accessed through a Geometry. More...
#include <Mesh.hh>
Public Member Functions | |
Mesh () | |
Constructor. More... | |
bool | CenterSubmesh () const |
Get whether the submesh should be centered at 0,0,0. More... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
const std::string & | FilePath () const |
The path to the file where this element was loaded from. More... | |
Errors | Load (ElementPtr _sdf) |
Load the mesh geometry based on a element pointer. More... | |
ignition::math::Vector3d | Scale () const |
Get the mesh's scale factor. More... | |
void | SetCenterSubmesh (const bool _center) |
Set whether the submesh should be centered. More... | |
void | SetFilePath (const std::string &_filePath) |
Set the path to the file where this element was loaded from. More... | |
void | SetScale (const ignition::math::Vector3d &_scale) |
Set the mesh's scale factor. More... | |
void | SetSubmesh (const std::string &_submesh) |
Set the mesh's submesh. More... | |
void | SetUri (const std::string &_uri) |
Set the mesh's URI. More... | |
std::string | Submesh () const |
A submesh, contained with the mesh at the specified URI, may optionally be specified. More... | |
std::string | Uri () const |
Get the mesh's URI. More... | |
sdf::v11::Mesh::Mesh | ( | ) |
Constructor.
bool sdf::v11::Mesh::CenterSubmesh | ( | ) | const |
Get whether the submesh should be centered at 0,0,0.
This will effectively remove any transformations on the submesh before the poses from parent links and models are applied. The return value is only applicable if a SubMesh has been specified.
sdf::ElementPtr sdf::v11::Mesh::Element | ( | ) | const |
const std::string& sdf::v11::Mesh::FilePath | ( | ) | const |
The path to the file where this element was loaded from.
Errors sdf::v11::Mesh::Load | ( | ElementPtr | _sdf | ) |
ignition::math::Vector3d sdf::v11::Mesh::Scale | ( | ) | const |
Get the mesh's scale factor.
void sdf::v11::Mesh::SetCenterSubmesh | ( | const bool | _center | ) |
Set whether the submesh should be centered.
See CenterSubmesh() for more information.
[in] | _center | True to center the submesh. |
void sdf::v11::Mesh::SetFilePath | ( | const std::string & | _filePath | ) |
Set the path to the file where this element was loaded from.
[in] _filePath Full path to the file on disk.
void sdf::v11::Mesh::SetScale | ( | const ignition::math::Vector3d & | _scale | ) |
Set the mesh's scale factor.
void sdf::v11::Mesh::SetSubmesh | ( | const std::string & | _submesh | ) |
Set the mesh's submesh.
See Submesh() for more information.
[in] | _submesh | Name of the submesh. The name should match a submesh within the mesh at the specified URI. |
void sdf::v11::Mesh::SetUri | ( | const std::string & | _uri | ) |
Set the mesh's URI.
[in] | _uri | The URI of the mesh. |
std::string sdf::v11::Mesh::Submesh | ( | ) | const |
A submesh, contained with the mesh at the specified URI, may optionally be specified.
If specified, this submesh should be used instead of the entire mesh.
std::string sdf::v11::Mesh::Uri | ( | ) | const |
Get the mesh's URI.