Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CollapsedMesh Class Reference

Mesh container. More...

#include <collapsedmesh.h>

Inheritance diagram for CollapsedMesh:

Mesh List of all members.

Public Methods

 CollapsedMesh (rvulong _max_polys, rvulong _max_verts)
bool add (Mesh *)
void write_prm (FILE *f, bool is_IM)
void set_grip (Vector *grip=NULL)

Private Attributes

rvulong max_polys
rvulong max_verts


Detailed Description

Mesh container.

subclass of Mesh with the ability to include other Meshes.

That way, a whole set of meshes can be collapsed to a single one that can be written to .prm files


Constructor & Destructor Documentation

CollapsedMesh::CollapsedMesh ( rvulong _max_polys,
rvulong _max_verts )
 

ctor.

_max_polys and _max_verts are the maximum sizes the instance can hold. Feeding more into it yields an xpanic().

Although both are rvulong, the thing can only hold as much fits into rvshort: 32000 polys and vertices.


Member Function Documentation

bool CollapsedMesh::add ( Mesh * m )
 

Adds a mesh. No reference is kept, all data is copied.

Returns:
false, if the instance limits are reached

void CollapsedMesh::set_grip ( Vector * grip = NULL )
 

Sets the grip point.

Feeding additional meshes into the class after setting grip destroys everything...

If grip is NULL, grip point will be calculated.

void CollapsedMesh::write_prm ( FILE * f,
bool is_IM )
 

Writes the mesh to a .prm or .i-p file


Member Data Documentation

rvulong CollapsedMesh::max_polys [private]
 

Reimplemented from Mesh.

rvulong CollapsedMesh::max_verts [private]
 

Reimplemented from Mesh.


The documentation for this class was generated from the following files:
Generated at Fri Jul 26 09:33:58 2002 for rvtmod/rvglue by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000