Mesh represents a mesh shape, and is usually accessed through a Geometry. More...
#include <Mesh.hh>
Public Member Functions | |
Mesh () | |
Constructor. More... | |
Mesh (const Mesh &_mesh) | |
Copy constructor. More... | |
Mesh (Mesh &&_mesh) noexcept | |
Move constructor. More... | |
virtual | ~Mesh () |
Destructor. 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... | |
Mesh & | operator= (const Mesh &_mesh) |
Copy Assignment operator. More... | |
Mesh & | operator= (Mesh &&_mesh) |
Move assignment operator. 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::v10::Mesh::Mesh | ( | ) |
Constructor.
|
virtual |
Destructor.
bool sdf::v10::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::v10::Mesh::Element | ( | ) | const |
const std::string& sdf::v10::Mesh::FilePath | ( | ) | const |
The path to the file where this element was loaded from.
Errors sdf::v10::Mesh::Load | ( | ElementPtr | _sdf | ) |
Copy Assignment operator.
[in] | _mesh | The mesh to set values from. |
ignition::math::Vector3d sdf::v10::Mesh::Scale | ( | ) | const |
Get the mesh's scale factor.
void sdf::v10::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::v10::Mesh::SetFilePath | ( | const std::string & | _filePath | ) |
Set the path to the file where this element was loaded from.
\paramp[in] _filePath Full path to the file on disk.
void sdf::v10::Mesh::SetScale | ( | const ignition::math::Vector3d & | _scale | ) |
Set the mesh's scale factor.
void sdf::v10::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::v10::Mesh::SetUri | ( | const std::string & | _uri | ) |
Set the mesh's URI.
[in] | _uri | The URI of the mesh. |
std::string sdf::v10::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::v10::Mesh::Uri | ( | ) | const |
Get the mesh's URI.