#include <collapsedmesh.h>
Inheritance diagram for CollapsedMesh:
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 |
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
|
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. |
|
Adds a mesh. No reference is kept, all data is copied.
|
|
Sets the grip point. Feeding additional meshes into the class after setting grip destroys everything...
If grip is |
|
Writes the mesh to a .prm or .i-p file |
|
Reimplemented from Mesh. |
|
Reimplemented from Mesh. |