Public Member Functions | Public Attributes | List of all members
PxSimpleTriangleMesh Class Reference

A structure describing a triangle mesh. More...

#include <PxSimpleTriangleMesh.h>

Inheritance diagram for PxSimpleTriangleMesh:
Inheritance graph
[legend]
Collaboration diagram for PxSimpleTriangleMesh:
Collaboration graph
[legend]

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

PxMeshFlags PxSimpleTriangleMesh::flags

Flags bits, combined from values of the enum PxMeshFlag.

PxBoundedData PxSimpleTriangleMesh::points

Pointer to first vertex point.

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:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com