True Axis Physics SDK 1.2.0.1 Beta Documentation
www.trueaxis.com

void TA::CollisionObjectAABBMesh::AddPolygon (
int   nNumVertices,
const int *   pnIndexList,
u32   nAttribute = 0x0
 

Use this function after calling TA::CollisionObjectAABBMesh::Initialise to initialise the vertex data of the mesh. The number of polygons added must be equal to that specified in the call to TA::CollisionObjectAABBMesh::Initialise. The accumulation of vertex counts in each polygon must also be equal to that specified in the call to TA::CollisionObjectAABBMesh::Initialise.

Note:
All polygons are single sided. Front facing polygons have counter clockwise winding.
Parameters:
nNumVertices
The number of vertices in the polygon.
pnIndexList
A list of indices into the list of vertices create with TA::CollisionObjectAABBMesh::AddVertex. Each index must reference a vertex already added.
nAttribute
An index to an surface attribute. Attributes can be accessed from there index with a call to TA::Physics::GetSurfaceAttribute(). New attributes can be added by a call to TA::Physics::AddSurfaceAttribute(). See TA::SurfaceAttribute for more details.
Examples:
SimplePhysicsSimulationExample.cpp.



© Copyright 2004-2006 TRUE AXIS PTY LTD Australia. All rights reserved.