palTerrainMesh Class Reference

#include <palTerrain.h>

Inheritance diagram for palTerrainMesh:

palTerrain palStatic palBodyBase

List of all members.

Public Member Functions

virtual void Init (Float x, Float y, Float z, const Float *pVertices, int nVertices, const int *pIndices, int nIndices)


Detailed Description

A triangle mesh This defines the terrain as a triangle mesh. The structure of the mesh which is supported is dependent on the underlying physics engine implementation. Typically this represents a connected list of triangles.

Member Function Documentation

void palTerrainMesh::Init ( Float  x,
Float  y,
Float  z,
const Float *  pVertices,
int  nVertices,
const int *  pIndices,
int  nIndices 
) [virtual]

Initializes a triangle mesh terrain. The triangle mesh consists of:

  • A set of vertices, which describe the location of corners in an object.
  • A set of indices, which describes how the corners are connected to form triangle surfaces in an object. The vertices are an array of Float values. Each vertex is assumed to be a group of 3 Float values. The indices are an array of integer (int) values.

Parameters:
x Position of the mesh terrain (x)
y Position of the mesh terrain (y)
z Position of the mesh terrain (z)
pVertices A pointer to the vertices which describe the mesh
nVertices The number of vertices. (ie: the total number of Floats / 3)
pIndices A pointer to the indices which describe the mesh
nIndices The number of indices. (ie: the number of triangles * 3)


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

Generated on Mon Aug 31 13:58:02 2009 for pal by  doxygen 1.5.7.1