Go to the documentation of this file.
17 #ifndef GZ_COMMON_MESH_HH_
18 #define GZ_COMMON_MESH_HH_
24 #include <gz/math/Vector3.hh>
25 #include <gz/math/Vector2.hh>
28 #include <gz/common/graphics/Export.hh>
41 class IGNITION_COMMON_GRAPHICS_VISIBLE
Mesh
47 public:
virtual ~
Mesh();
67 public: gz::math::Vector3d Max()
const;
71 public: gz::math::Vector3d Min()
const;
75 public:
unsigned int VertexCount()
const;
79 public:
unsigned int NormalCount()
const;
83 public:
unsigned int IndexCount()
const;
87 public:
unsigned int TexCoordCount()
const;
105 public:
unsigned int SubMeshCount()
const;
114 public:
unsigned int MaterialCount()
const;
119 public:
MaterialPtr MaterialByIndex(
const unsigned int _index)
const;
125 public:
int IndexOfMaterial(
const Material *_mat)
const;
131 const unsigned int _index)
const;
142 public:
void FillArrays(
double **_vertArr,
int **_indArr)
const;
146 public:
void RecalculateNormals();
152 public:
void AABB(gz::math::Vector3d &_center,
153 gz::math::Vector3d &_minXYZ,
154 gz::math::Vector3d &_maxXYZ)
const;
159 public:
void GenSphericalTexCoord(
160 const gz::math::Vector3d &_center);
168 public:
void SetSkeleton(
const SkeletonPtr &_skel);
172 public:
bool HasSkeleton()
const;
176 public:
void Scale(
const gz::math::Vector3d &_factor);
180 public:
void SetScale(
const gz::math::Vector3d &_factor);
185 public:
void Center(
const gz::math::Vector3d &_center =
186 gz::math::Vector3d::Zero);
190 public:
void Translate(
const gz::math::Vector3d &_vec);
204 public:
double Volume()
const;
Forward declarations for the common classes.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
Microsoft Visual Studio does not automatically export the interface information for member variables ...
Definition: gz/common/SuppressWarning.hh:65
Encapsulates description of a material.
Definition: gz/common/Material.hh:38
A 3D mesh.
Definition: gz/common/Mesh.hh:41
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
Definition: gz/common/SuppressWarning.hh:68
A child mesh.
Definition: gz/common/SubMesh.hh:40