00001 00014 #ifndef __DIME_HELP_H__ 00015 #define __DIME_HELP_H__ 00016 00017 #include <cad/cad_model.h> 00018 00019 #include <dime/entities/3DFace.h> 00020 #include <dime/entities/Entity.h> 00021 #include <dime/entities/Polyline.h> 00022 #include <dime/entities/Vertex.h> 00023 00024 00028 class DimeHelp { 00029 public: 00039 DimeHelp(CadModel* cadModel, Color color, bool splitQuad); 00040 00046 void add(dimeEntity *entity); 00047 00052 CadModel* getCadModel(); 00053 00054 private: 00055 00061 static Point vertex2Point(dimeVec3f v); 00062 00068 void addPlane(dime3DFace* entity); 00069 00075 void addSpline(dimePolyline* entity); 00076 00080 CadModel* cadModel; 00081 00085 Color color; 00086 00090 unsigned countCP; 00091 00095 unsigned countQuad; 00096 00100 unsigned countSplineFaces; 00101 00105 unsigned countTriangles; 00106 00110 unsigned countVertices; 00111 00115 bool splitQuadrilaterals; 00116 00117 }; // class DimeHelp 00118 00119 #endif // ! __DIME_HELP_H__