00001
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00019
00020 #ifndef __VPFACE_H // Verify previous includes of vpmesh.h header
00021 #define __VPFACE_H
00022
00023 #include <vpvertex3d.h>
00024 #include <vpvector3d.h>
00025 #include <vpedge.h>
00026 #include <list>
00027 using namespace std;
00028
00029
00030
00031
00032
00034
00035
00036
00038
00039 class VPFace {
00040 private:
00041 list<VPVertex3D> vertices;
00042 list<VPEdge> edges;
00043 VPPoint3D normal;
00044 short int color[4];
00045 public:
00046 VPFace ( void );
00047 VPFace (int numvertices, VPVertex3D* ...);
00048 VPFace (int numedges, VPEdge* ...);
00049 VPFace (list<VPVertex3D> *v);
00050 VPFace (list<VPEdge> *e);
00051 short int *vpGetColor( void );
00052 VPVector3D *vpGetNormal( void );
00053 void vpSetColor (short int *c);
00054 void vpSetNormal (VPVector3D *n);
00055 };
00056
00057 #endif