|
Public Member Functions |
| ISMesh (Cstr_ptr &name=str_ptr::null_str(), int numv=0, int nume=0, int numf=0) |
virtual | ~ISMesh () |
virtual ISVertex * | addTriStripVertex (ISVertex *v, int triStripNum) |
virtual ISVertex * | addVertex (ISVertex *v) |
virtual ISVertex * | addVertex (cWpt &loc) |
virtual ISVertex * | addVertex (cWpt &loc, cWvec &norm) |
virtual ISEdge * | addEdge (ISEdge *e) |
virtual ISEdge * | addEdge (ISVertex *u, ISVertex *v) |
virtual ISEdge * | addEdge (int i, int j) |
virtual ISFace * | addFace (ISFace *f, Wvec normal=Wvec(0, 0, 0), int isolated=1) |
virtual ISFace * | addFace (ISVertex *u, ISVertex *v, ISVertex *w, Wvec normal=Wvec(0, 0, 0), int isolated=1, bool debug=1) |
virtual ISFace * | addFace (int i, int j, int k, Wvec normal=Wvec(0, 0, 0), int isolated=1, bool debug=1) |
virtual ISFace * | lookupFace (ISVertex *u, ISVertex *v, ISVertex *w) |
virtual int | removeVertex (ISVertex *v) |
virtual int | removeEdge (ISEdge *e) |
virtual int | removeFace (ISFace *f) |
virtual int | removeAll () |
virtual BBox | bbox () |
virtual double | volume () |
virtual double | surfaceArea () |
virtual void | print () |
virtual void | transform (cWtransf &xform) |
int | empty () const |
int | nverts () const |
int | nedges () const |
int | nfaces () const |
int | ntriStrips () const |
int | nisoFaces () const |
cARRAY< ISVertex * > & | verts () const |
cARRAY< ISEdge * > & | edges () const |
cARRAY< ISFace * > & | faces () const |
cARRAY< TriStrip * > & | tristrips () const |
cARRAY< ISFace * > & | isolatedFaces () const |
int | validVertIndices (int i, int j) const |
int | validVertIndices (int i, int j, int k) const |
void | setUseVertexColors (int value) |
void | setUseTexCoords (int value) |
int | getUseTexCoords () |
void | setUseVertexNormals (int value) |
void | draw (bool useAlpha=false, double alpha=1.0) |
bool | readVRML (istream *is) |
void | writeVRML (ostream *ofs) |
double | rayIntersect (Wvec v, Wpt p) |
int | pointIntersect (Wpt pobj) |
void | cleanUp (double epsilon) |
Protected Attributes |
ARRAY< ISVertex * > | _verts |
ARRAY< ISEdge * > | _edges |
ARRAY< ISFace * > | _faces |
ARRAY< TriStrip * > | _triStrips |
ARRAY< ISFace * > | _isolatedFaces |
str_ptr | _name |
BBox | _bbox |
int | _useVertexColors |
int | _useTexCoords |
int | _useVertexNormals |