ReactPhysics3D: reactphysics3d::TriangleMesh Class Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | List of all members
reactphysics3d::TriangleMesh Class Reference

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.

## Detailed Description

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).

## Member Function Documentation

## ◆ getBounds()

const AABB & TriangleMesh::getBounds | ( |  | ) | const

Return the bounds of the mesh in the x,y,z direction.

Returns
  The three mimimum bounds of the mesh in the x,y,z direction

The documentation for this class was generated from the following files:

- include/reactphysics3d/collision/TriangleMesh.h
- src/collision/TriangleMesh.cpp