Go to the documentation of this file.
21 #include <ignition/math/Vector3.hh>
24 #include <sdf/sdf_config.h>
29 inline namespace SDF_VERSION_NAMESPACE {
73 public: std::string
Uri()
const;
77 public:
void SetUri(
const std::string &_uri);
89 public: ignition::math::Vector3d
Scale()
const;
93 public:
void SetScale(
const ignition::math::Vector3d &_scale);
124 private: MeshPrivate *dataPtr;
Mesh(const Mesh &_mesh)
Copy constructor.
std::string Submesh() const
A submesh, contained with the mesh at the specified URI, may optionally be specified.
std::string Uri() const
Get the mesh's URI.
void SetFilePath(const std::string &_filePath)
Set the path to the file where this element was loaded from.
virtual ~Mesh()
Destructor.
namespace for Simulation Description Format parser
Definition: Actor.hh:33
void SetSubmesh(const std::string &_submesh)
Set the mesh's submesh.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
Mesh & operator=(Mesh &&_mesh)
Move assignment operator.
bool CenterSubmesh() const
Get whether the submesh should be centered at 0,0,0.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:89
#define SDFORMAT_VISIBLE
Definition: system_util.hh:48
void SetCenterSubmesh(const bool _center)
Set whether the submesh should be centered.
Mesh represents a mesh shape, and is usually accessed through a Geometry.
Definition: Mesh.hh:38
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:53
const std::string & FilePath() const
The path to the file where this element was loaded from.
void SetScale(const ignition::math::Vector3d &_scale)
Set the mesh's scale factor.
ignition::math::Vector3d Scale() const
Get the mesh's scale factor.
Mesh(Mesh &&_mesh) noexcept
Move constructor.
Mesh & operator=(const Mesh &_mesh)
Copy Assignment operator.
Errors Load(ElementPtr _sdf)
Load the mesh geometry based on a element pointer.
void SetUri(const std::string &_uri)
Set the mesh's URI.