00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef VERTEX_HC
00027 #define VERTEX_HC
00028
00029 #include <fstream>
00030 #include <math.h>
00031 #include <stdio.h>
00032
00033 #include "oaw/misc/vectorc.h"
00034 #include "../oawconfig.h"
00035
00036 OAW_BEGIN_NAMESPACE
00037
00038 class OAW_DLLMAPPING VertexC
00039 {
00040 public:
00041 VertexC();
00042 virtual ~VertexC(){}
00043 void SetKoord(double x,double y,double z){koord.Set(x,y,z);}
00044 void SetNormal(double nx, double ny, double nz);
00045 VertexC& operator = (const VertexC&);
00046 void Write();
00047 void Writeln();
00048 public:
00049 VectorC koord;
00050 VectorC normal;
00051 VectorC texel;
00052 float color[4];
00053 int bn;
00054 int bt;
00055 int bc;
00056 };
00057
00058
00059
00060 struct StandardVertex
00061 {
00062 StandardVertex() {}
00063 StandardVertex(Vector3C &_p, Vector3C &_n, double _u, double _v) : p(_p), n(_n), u(_u), v(_v) {}
00064
00065 Vector3C p;
00066 Vector3C n;
00067 double u, v;
00068 };
00069
00070 typedef VertexC* pCVertex;
00071
00072
00073 OAW_END_NAMESPACE
00074
00075 #endif
00076
00077
00078
00079
00080
00081