palConcaveGeometry Class Reference
#include <palGeometry.h>
List of all members.
|
Public Member Functions |
virtual void | Init (palMatrix4x4 &pos, const Float *pVertices, int nVertices, const int *pIndices, int nIndices, Float mass) |
Detailed Description
A concave geometry This represents a concave polygon shape at a given position constructed from a set of vertices and indicies describing triangles. TODO: picture.
Member Function Documentation
void palConcaveGeometry::Init |
( |
palMatrix4x4 & |
pos, |
|
|
const Float * |
pVertices, |
|
|
int |
nVertices, |
|
|
const int * |
pIndices, |
|
|
int |
nIndices, |
|
|
Float |
mass | |
|
) |
| | [virtual] |
Initializes a triangle mesh. 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:
-
| pos | The transformation matrix representing the position and orientation of the concave object |
| 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) |
| mass | The objects's mass |
The documentation for this class was generated from the following files:
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palGeometry.h
- /var/www/hosted/adrianboeing.com/pal/current/pal/pal/pal/palGeometry.cpp