lilith3d::SolidMesh Class Reference

#include <mesh.h>

Inheritance diagram for lilith3d::SolidMesh:

lilith3d::Mesh List of all members.

Detailed Description

A class to create special effect meshes. Used by creating a SolidMesh() and then calling the GenerateXYZ method. Generally, this mesh assumes it is for effects (Blaster bolts originally) therefore lighting and intersections are disabled. You can intersections back on with UseIntersection().


Public Member Functions

 SolidMesh ()
 Create a new object - a resource isn't used.
void GenerateSlab (float head, float tail, float width, const grinliz::Vector3F &dir, const grinliz::Vector3F &up)
void GenerateCube (const grinliz::Rectangle3F &bounds)
void GenerateSphere (float radius, int iterations)
void UseIntersection (bool intersection)
 Turn on intersections. Off by default.
virtual void IntersectRay (int flags, const grinliz::Vector3F &point, const grinliz::Vector3F &dir, LilithObjectList *vec)
float Length ()
 Query the length of the mesh.


Member Function Documentation

void lilith3d::SolidMesh::GenerateSlab ( float  head,
float  tail,
float  width,
const grinliz::Vector3F &  dir,
const grinliz::Vector3F &  up 
)

Generate a rectangle. The front will be origin + head, and the back will be at origin + tail. (Generally head >= 0 and tail <= 0).

void lilith3d::SolidMesh::GenerateCube ( const grinliz::Rectangle3F &  bounds  ) 

Generate a rectanglular solid. Similar to the GenerateSlab function, but different inputs. The 'bounds' parameter must contain the point (0,0,0)

void lilith3d::SolidMesh::GenerateSphere ( float  radius,
int  iterations 
)

Generate a sphere. The "iterations" is a quality metric and should generally be 1 or 2, where 2 is higher quality.

virtual void lilith3d::SolidMesh::IntersectRay ( int  flags,
const grinliz::Vector3F &  point,
const grinliz::Vector3F &  dir,
LilithObjectList *  vec 
) [virtual]

Check for intersection with the current Mesh.

Implements lilith3d::Mesh.


The documentation for this class was generated from the following file:
Generated on Fri Mar 23 19:36:27 2007 for Lilith3D by  doxygen 1.5.1-p1