PxSimpleTriangleMesh Class Reference

A structure describing a triangle mesh. More...

#include <PxSimpleTriangleMesh.h>

Inheritance diagram for PxSimpleTriangleMesh:
Collaboration diagram for PxSimpleTriangleMesh:

Public Member Functions

PX_INLINE PxSimpleTriangleMesh ()
 constructor sets to default. More...
 
PX_INLINE void setToDefault ()
 (re)sets the structure to the default. More...
 
PX_INLINE bool isValid () const
 returns true if the current settings are valid More...
 

Public Attributes

PxBoundedData points
 Pointer to first vertex point. More...
 
PxBoundedData triangles
 Pointer to first triangle. More...
 
PxMeshFlags flags
 Flags bits, combined from values of the enum PxMeshFlag. More...
 

Detailed Description

A structure describing a triangle mesh.

Member Data Documentation

◆ flags

PxMeshFlags PxSimpleTriangleMesh::flags

Flags bits, combined from values of the enum PxMeshFlag.

◆ points

PxBoundedData PxSimpleTriangleMesh::points

Pointer to first vertex point.

◆ triangles

PxBoundedData PxSimpleTriangleMesh::triangles

Pointer to first triangle.

Caller may add triangleStrideBytes bytes to the pointer to access the next triangle.

These are triplets of 0 based indices: vert0 vert1 vert2 vert0 vert1 vert2 vert0 vert1 vert2 ...

where vertex is either a 32 or 16 bit unsigned integer. There are numTriangles*3 indices.

This is declared as a void pointer because it is actually either an PxU16 or a PxU32 pointer.


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