Files Classes Functions Hierarchy
00001 #ifndef D3FAN2_H 00002 #define D3FAN2_H 00003 00004 #include <vector> 00005 #include <iosfwd> 00006 using namespace std; 00007 00008 #include <d3tess.h> 00009 #include <simplexface.h> 00010 #include <typedefs.h> 00011 00012 class d3tess; 00013 00014 class d3fan2 00015 { 00016 d3tess & tess; 00017 00018 // Surface facets viewable to inserted point w. 00019 vector< simplexface > vft; 00020 00021 // Initial point where triangles are inserted. 00022 // This is used with vft to map newely created triangles. 00023 uint vk; 00024 00025 // Point 00026 uint w; 00027 00028 public: 00029 00030 // Constructor 00031 d3fan2( d3tess & tess_ ); 00032 00033 // Build the 3D fan from the point _w to the 00034 // surface of tess. Assume tess.cp on surface. 00035 void eval(uintc w_); 00036 00037 private: 00038 void addspike(); 00039 void traverseleft(simplexface const prev); 00040 void traverseright(simplexface const prev); 00041 }; 00042 00043 00044 #endif 00045
1.5.8