|
AGX Dynamics 2.41.3.0
|
Class for more intuitive access to the Mesh's mesh data. More...
#include <Mesh.h>
Public Member Functions | |
| agx::Vec3 | getEdgeEndVertex (uint_fast8_t localEdgeIndex) const |
| agx::Vec3 | getEdgeStartVertex (uint_fast8_t localEdgeIndex) const |
| size_t | getGlobalVertexIndex (uint_fast8_t localVertexIndex) const |
| Returns the global index of the vertex. | |
| const Triangle | getHalfEdgePartner (uint_fast8_t localEdgeIndex) const |
| size_t | getHalfEdgePartnerGlobalEdgeIndex (uint_fast8_t localEdgeIndex) const |
| size_t | getHalfEdgePartnerLocalEdgeIndex (uint_fast8_t localEdgeIndex) const |
| agx::Real | getMaximumEdgeLength () const |
| const Mesh * | getMesh () const |
| agx::Vec3 | getNormal () const |
| This function returns the triangle normal (as stored in the collision mesh data). | |
| size_t | getTriangleIndex () const |
| Implementations. | |
| agx::Vec3 | getVertex (uint_fast8_t localVertexIndex) const |
| bool | hasHalfEdgePartner (uint_fast8_t localEdgeIndex) const |
| bool | isValid () const |
Protected Member Functions | |
| Triangle () | |
| This constructor is hidden and should only be called from the Mesh class and its children. | |
| Triangle (const Mesh *mesh, size_t triangleIndex) | |
| This constructor is hidden and should only be called from the Mesh class. | |
Protected Attributes | |
| MeshConstRef | m_mesh |
| size_t | m_triangleIndex |
Class for more intuitive access to the Mesh's mesh data.
Involves a small overhead compared to using the more low-level access to the raw data by using getMeshData().
|
protected |
|
protected |
This constructor is hidden and should only be called from the Mesh class and its children.
| agx::Vec3 agxCollide::Mesh::Triangle::getEdgeEndVertex | ( | uint_fast8_t | localEdgeIndex | ) | const |
| agx::Vec3 agxCollide::Mesh::Triangle::getEdgeStartVertex | ( | uint_fast8_t | localEdgeIndex | ) | const |
| size_t agxCollide::Mesh::Triangle::getGlobalVertexIndex | ( | uint_fast8_t | localVertexIndex | ) | const |
Returns the global index of the vertex.
| localVertexIndex | The vertex's index within the triangle (0 to 2). |
Definition at line 648 of file Mesh.h.
Referenced by agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
|
inline |
| localEdgeIndex | The edge's index within the triangle (0 to 2). |
Definition at line 696 of file Mesh.h.
References agxAssert.
Referenced by agxSDK::calculateMeshOffset(), and agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
|
inline |
| localEdgeIndex | The edge's index within the triangle (0 to 2). |
If no half edge information can be found, returns a value which is This should be tested for before the result is used.
Definition at line 690 of file Mesh.h.
References agxCollide::Mesh::getGlobalEdgeIndex().
| size_t agxCollide::Mesh::Triangle::getHalfEdgePartnerLocalEdgeIndex | ( | uint_fast8_t | localEdgeIndex | ) | const |
| localEdgeIndex | The edge's index within the triangle (0 to 2). |
Definition at line 703 of file Mesh.h.
References agxAssert.
| agx::Real agxCollide::Mesh::Triangle::getMaximumEdgeLength | ( | ) | const |
| const Mesh * agxCollide::Mesh::Triangle::getMesh | ( | ) | const |
| agx::Vec3 agxCollide::Mesh::Triangle::getNormal | ( | ) | const |
This function returns the triangle normal (as stored in the collision mesh data).
Definition at line 660 of file Mesh.h.
Referenced by agxSDK::calculateMeshOffset().
| size_t agxCollide::Mesh::Triangle::getTriangleIndex | ( | ) | const |
Implementations.
Triangle class
Definition at line 642 of file Mesh.h.
References m_triangleIndex.
Referenced by agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
| agx::Vec3 agxCollide::Mesh::Triangle::getVertex | ( | uint_fast8_t | localVertexIndex | ) | const |
| localVertexIndex | The vertex's index within the triangle (0 to 2). |
Definition at line 666 of file Mesh.h.
Referenced by agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
| bool agxCollide::Mesh::Triangle::hasHalfEdgePartner | ( | uint_fast8_t | localEdgeIndex | ) | const |
| localEdgeIndex | The edge's index within the triangle (0 to 2). |
Definition at line 711 of file Mesh.h.
Referenced by agxSDK::findMostParallelEdgeAmongNeighboringTriangles().
| bool agxCollide::Mesh::Triangle::isValid | ( | ) | const |
Definition at line 654 of file Mesh.h.
Referenced by agxSDK::calculateMeshOffset().
|
protected |
|
protected |
Definition at line 191 of file Mesh.h.
Referenced by getTriangleIndex().