ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class represents a mesh made of triangles. More...
#include <include/reactphysics3d/collision/TriangleMesh.h>
Public Member Functions | |
uint32 | getNbVertices () const |
Return the number of vertices in the mesh. | |
uint32 | getNbTriangles () const |
Return the number of triangles faces of the mesh. | |
const AABB & | getBounds () const |
Return the bounds of the mesh in the x,y,z direction. | |
void | getTriangleVerticesIndices (uint32 triangleIndex, uint32 &outV1Index, uint32 &outV2Index, uint32 &outV3Index) const |
Return the three vertex indices of a given triangle face. | |
void | getTriangleVertices (uint32 triangleIndex, Vector3 &outV1, Vector3 &outV2, Vector3 &outV3) const |
Return the coordinates of the three vertices of a given triangle face. | |
void | getTriangleVerticesNormals (uint32 triangleIndex, Vector3 &outN1, Vector3 &outN2, Vector3 &outN3) const |
Return the normals of the three vertices of a given triangle face. | |
const Vector3 & | getVertex (uint32 vertexIndex) const |
Return the coordinates of a given vertex. | |
const Vector3 & | getVertexNormal (uint32 vertexIndex) const |
Return the normal of a given vertex. | |
This class represents a mesh made of triangles.
A single TriangleMesh object can be used to create one or many ConcaveMeshShape (with different scaling for instance).
const AABB & TriangleMesh::getBounds | ( | ) | const |
Return the bounds of the mesh in the x,y,z direction.