Class hierarchy   Compound list   File list   Compound Members   File Members  

CollapsedMesh Class Reference

Mesh container. More...

Inherits Mesh.

List of all members.

Public Members

Private Members


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


Member Function 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.

bool CollapsedMesh::add(Mesh *)

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

Returns:
false, if the instance limits are reached

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

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

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.


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 Wed May 31 21:08:20 2000 for Rvtmod/rvglue by doxygen  written by Dimitri van Heesch, © 1997-1998