Files Classes Functions Hierarchy
#include <simplexD2tessindexedtest.h>
Public Member Functions | |
| void | test01 () |
| Compiling and printing simplexD2tessindexed. | |
| void | test02 () |
| Reading from a file a simplexD2tessindexed. | |
| void | test03 () |
| Change the winding of a simplexD2tessindexed to anticlockwise. | |
Definition at line 5 of file simplexD2tessindexedtest.h.
| void simplexD2tessindexedtest::test01 | ( | ) |
Compiling and printing simplexD2tessindexed.
Definition at line 13 of file simplexD2tessindexedtest.cpp.
References simplexD2tessindexed< PT, PD, INDX >::construct().
00014 { 00015 double pt1[] = 00016 { 00017 0.0, 0.0, 00018 2.0, 0.0, 00019 0.0, 2.0, 00020 2.0, 2.0, 00021 1.0, 3.0, 00022 0.0, 0.0 00023 }; 00024 00025 uint vi1[] = 00026 { 00027 0,0,0, 00028 3,2,5, 00029 3,4,2, 00030 5,1,3 00031 }; 00032 00033 simplexD2tessindexed<point2<double>,double,uint> tess; 00034 00035 tess.construct(pt1,6,vi1,4); 00036 00037 string s = (string)tess; 00038 00039 cout << "***" << endl; 00040 cout << s; 00041 cout << "***" << endl; 00042 }
| void simplexD2tessindexedtest::test02 | ( | ) |
Reading from a file a simplexD2tessindexed.
Definition at line 44 of file simplexD2tessindexedtest.cpp.
References tokenizermisc::readfile(), simplexD2tessindexed< PT, PD, INDX >::serializeInverse(), and SHOW.
00045 { 00046 cout << "Read file tess002.txt to a string." << endl; 00047 00048 string s; 00049 bool res = tokenizermisc::readfile(s,"tess002.txt"); 00050 cout << SHOW(res) << endl; 00051 00052 cout << s << endl; 00053 00054 simplexD2tessindexed<point2<double>,double,uint> tess; 00055 00056 cout << "Check to see what was read in" << endl; 00057 00058 tess.serializeInverse(s); 00059 00060 cout << (string)tess << endl; 00061 }
| void simplexD2tessindexedtest::test03 | ( | ) |
Change the winding of a simplexD2tessindexed to anticlockwise.
Definition at line 63 of file simplexD2tessindexedtest.cpp.
References tokenizermisc::readfile(), simplexD2tessindexed< PT, PD, INDX >::serializeInverse(), SHOW, and simplexD2tessindexed< PT, PD, INDX >::windinganticlockwise().
00064 { 00065 cout << "Read file tess001.txt to a string." << endl; 00066 00067 string s; 00068 bool res = tokenizermisc::readfile(s,"tess001.txt"); 00069 cout << SHOW(res) << endl; 00070 00071 cout << s << endl; 00072 00073 simplexD2tessindexed<point2<double>,double,uint> tess; 00074 00075 cout << "Check to see what was read in" << endl; 00076 00077 tess.serializeInverse(s); 00078 00079 cout << (string)tess << endl; 00080 00081 00082 cout << "Change the winding to anticlockwise." << endl; 00083 tess.windinganticlockwise(); 00084 cout << (string)tess << endl; 00085 }
1.5.8