palBoxGeometry Class Reference

#include <palGeometry.h>

Inheritance diagram for palBoxGeometry:

palGeometry

List of all members.

Public Member Functions

virtual void Init (palMatrix4x4 &pos, Float width, Float height, Float depth, Float mass)

Protected Member Functions

virtual Float * GenerateMesh_Vertices ()
virtual int * GenerateMesh_Indices ()


Detailed Description

A box geometry This represents a box (eg: cube, rectangular prism) at a given position, with a given width, height, depth and mass.
cube.jpg
The diagram shows the central point of the box, as well as the width,height,and depth of the box.

Member Function Documentation

int * palBoxGeometry::GenerateMesh_Indices (  )  [protected, virtual]

Generates a set of corresponding indicies to represent the approximation to the geometry.

Reimplemented from palGeometry.

Float * palBoxGeometry::GenerateMesh_Vertices (  )  [protected, virtual]

Generates a set of vertices that represent an approximation to the geometry. This can be used for debug rendering, or generating the mesh for a convex object representation for some physics engines

Returns:
An array of Floats (3 Floats is 1 Vertex), or null if the functionality is unsupported or there is an error

Reimplemented from palGeometry.

void palBoxGeometry::Init ( palMatrix4x4 &  pos,
Float  width,
Float  height,
Float  depth,
Float  mass 
) [virtual]

Initializes the box The center of the box is specified by its position.

Parameters:
pos The transformation matrix representing the position and orientation of the box
width The width of the box
height The height of the box
depth depth The depth of the box
mass The box's mass


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