#include <mesh.h>
Inheritance diagram for Mesh:
Public Methods | |
Mesh (RV_PRM_Mesh*, FILE *, bool intermediate) | |
Mesh (RV_W_Mesh*, FILE *, bool intermediate) | |
Mesh () | |
Mesh (Mesh *) | |
~Mesh () | |
void | translate (rvfloat dx, rvfloat dy, rvfloat dz) |
void | translate (Vector &v) |
void | rotate (Matrix_3x3 &) |
void | write_w (FILE *, bool is_im_file) |
bool | isDegenerated (void) |
void | cleanupPolyList (void) |
void | cleanupVertexList (void) |
void | optimize (void) |
int | numPolys (void) |
int | numSolidPolys (void) |
Surface* | createPolySurface (int pidx) |
void | add (Polygon *p) |
void | add (Vertex *v) |
void | deleteSomePolys (bool delUnsolids, bool delInvisibles) |
bool | apply (PolygonModifier *) |
void | calc_visible_bounds (AxisBox &abox) |
Public Attributes | |
Polygon** | poly |
RV_W_Mesh | data |
Vertex** | verts |
int | max_polys |
int | max_verts |
Protected Methods | |
void | load (FILE *, bool intermediate, bool is_Instance) |
void | calc_bounds (void) |
Friends | |
class | CollapsedMesh |
class for RV_W_Mesh and RV_PRM_Mesh
|
|
|
|
|
|
|
ctor. Copies all data! |
|
|
|
adds a vertex to the mesh |
|
adds a polygon to the mesh |
|
|
|
|
|
|
|
removes deleted polygons from the poly list |
|
removes unused vertices from the vertex list |
|
|
|
deletes unnecessary polygons. Polys that are "off" are always deleted, deletion of others is controlled by the arguments. |
|
|
|
|
|
|
|
|
|
optimizes mesh by calling cleanupPolyList() and cleanupVertexList() |
|
|
|
|
|
|
|
writes the mesh to a .w or .i-w file. writing to .prm's is done by CollapsedMesh |
|
|
|
|
|
Reimplemented in CollapsedMesh. |
|
Reimplemented in CollapsedMesh. |
|
|
|
|