21#include <gz/math/Vector3.hh>
22#include <gz/utils/ImplPtr.hh>
30 inline namespace SDF_VERSION_NAMESPACE {
50 public: std::string
Uri()
const;
54 public:
void SetUri(
const std::string &_uri);
66 public: gz::math::Vector3d
Scale()
const;
70 public:
void SetScale(
const gz::math::Vector3d &_scale);
108 IGN_UTILS_IMPL_PTR(dataPtr)
Mesh represents a mesh shape, and is usually accessed through a Geometry.
Definition: Mesh.hh:36
void SetFilePath(const std::string &_filePath)
Set the path to the file where this element was loaded from.
Errors Load(ElementPtr _sdf)
Load the mesh geometry based on a element pointer.
std::string Submesh() const
A submesh, contained with the mesh at the specified URI, may optionally be specified.
void SetUri(const std::string &_uri)
Set the mesh's URI.
sdf::ElementPtr ToElement() const
Create and return an SDF element filled with data from this mesh.
const std::string & FilePath() const
The path to the file where this element was loaded from.
bool CenterSubmesh() const
Get whether the submesh should be centered at 0,0,0.
sdf::ElementPtr Element() const
Get a pointer to the SDF element that was used during load.
void SetSubmesh(const std::string &_submesh)
Set the mesh's submesh.
void SetCenterSubmesh(const bool _center)
Set whether the submesh should be centered.
void SetScale(const gz::math::Vector3d &_scale)
Set the mesh's scale factor.
std::string Uri() const
Get the mesh's URI.
gz::math::Vector3d Scale() const
Get the mesh's scale factor.
std::vector< Error > Errors
A vector of Error.
Definition: Types.hh:106
std::shared_ptr< Element > ElementPtr
Definition: Element.hh:54
namespace for Simulation Description Format parser
Definition: Actor.hh:35
#define SDFORMAT_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system_util.hh:25