xmsgrid
1.0
|
#include <boost/shared_ptr.hpp>
#include <cxxtest/TestSuite.h>
Go to the source code of this file.
Classes | |
class | TrTinUnitTests |
Tests for TrTin. More... | |
Namespaces | |
xms | |
XMS Namespace. | |
Functions | |
boost::shared_ptr< xms::TrTin > | trBuildTestTin () |
Builds a simple TIN with a hole in the middle. More... | |
boost::shared_ptr< xms::TrTin > | trBuildTestTin2 () |
Builds a simple TIN for testing. More... | |
boost::shared_ptr< xms::TrTin > | trBuildTestTin6 () |
Builds a simple TIN for testing. More... | |
boost::shared_ptr< xms::TrTin > | trBuildTestTin7 () |
Builds a simple TIN for testing. More... | |
boost::shared_ptr< xms::TrTin > | trBuildTestTin8 () |
Builds a simple TIN with a hole in the middle and a concavity. More... | |
boost::shared_ptr< xms::TrTin > | trBuildTestTin9 () |
Builds a TIN with long thin triangles for testing. More... | |
Definition in file TrTin.t.h.
boost::shared_ptr<xms::TrTin> trBuildTestTin | ( | ) |
Builds a simple TIN with a hole in the middle.
/// /// 15.0 9 /// /|\ /// / | \ /// / 8 | 9 \ /// 10.0 6-----7-----8 /// |\ 5 |\ 6 |\ /// | \ | \ | \ /// | 4 \| \| 7 \ /// 5.0 2-----3-----4-----5 /// \ 0 |\ 2 | 3 / /// \ | \ | / /// \| 1 \|/ /// 0.0 0-----1 /// /// 0.0 5.0 10.0 15.0 /// ///
Definition at line 1451 of file TrTin.cpp.
References xms::TrTin::New().
Referenced by TriSearchUnitTests::testTriEnvelopesOverlap().
boost::shared_ptr<xms::TrTin> trBuildTestTin2 | ( | ) |
Builds a simple TIN for testing.
/// /// 10.0 6 /// |\ /// | \ /// | \ /// | \ /// | 5 \ /// | \ /// 5.0 4-----------5 /// |\ 4 /|\ /// | \ / | \ /// | \ / | \ /// | 2 3 3 | \ /// | / \ | \ /// | / \ | 1 \ /// |/ 0 \| \ /// 0.0 0-----------1-------------2 /// 0.0 2.5 5.0 10.0 /// ///
Definition at line 1487 of file TrTin.cpp.
References xms::TrTin::New(), and XM_COUNTOF.
boost::shared_ptr<xms::TrTin> trBuildTestTin6 | ( | ) |
Builds a simple TIN for testing.
/// /// 40 36-37--38--39--40--41--42--43--44 /// |\16|\28|\24|\54|51/|52/|\61|\59| /// |17\|18\|25\|26\|/47|/50|53\|60\| /// 30 27-28--29--30--31--32--33--34--35 /// |\14|\23|\22|\63|48/|49/|\58|\57| /// |15\|19\|20\|27\|/35|/46|62\|55\| /// 20 18-19--20--21--22--23--24--25--26 /// |\ 3|29/|21/|\30|\32|\45|\41|56/| /// |1 \|/ 7|/10|13\|33\|34\|42\|/44| /// 10 9--10--11--12--13--14--15--16--17 /// |2 /|\12|8 /|9 /|\37|\36|\38|43/| /// |/ 0|4 \|/ 5|/ 6|11\|31\|39\|/40| /// 0 0---1---2---3---4---5---6---7---8 /// 0 10 20 30 40 50 60 70 80 /// /// (most triangles not shown) ///
Definition at line 1521 of file TrTin.cpp.
References xms::TrTin::New(), and xms::TrTriangulator::Triangulate().
Referenced by TrTinUnitTests::testBoundaries(), TrTinUnitTests::testDeletePoints(), and TrTinUnitTests::testDeleteTriangles().
boost::shared_ptr<xms::TrTin> trBuildTestTin7 | ( | ) |
Builds a simple TIN for testing.
/// // 10- 17-----18------19------20------21 // | |\ 8 /|\ 11 /|\ 22 / \ 26 /| // | | \ / | \ / | \ / \ //| // | | \ / | \ /30|23\ / 27 \ / /| // 5- |6 13 12|9 14 | 15------16 /| // | | / \ | /|\ | / \ 25 /|28/| // | | / \ | / | \ | / \ / | / | // | |/ 7 \|/ | \|/ 24 \ /29| / | // 0- 9------10 10|3 11------12 | / | // | |\ 13 / \ | / \ 15 / \ |/ | // | | \ / \ | / \ / \ |/ | // | | \ / 5 \|/ 16 \ / 21 \|/ | // -5- | 0 5-------6-------7-------8 18| // | | / \ 4 / \ 14 / \ 19 / \ | // | | / \ / \ / \ / \ | // | |/ 1 \ / 2 \ / 20 \ / 17 \| // -10- 0-------1-------2-------3-------4 // // |-------|-------|-------|-------| // 0 10 20 30 40 ///
Definition at line 1565 of file TrTin.cpp.
References xms::TrTin::New(), xms::TrTriangulator::Triangulate(), and XM_COUNTOF.
Referenced by TrOuterTriangleDeleterUnitTests::test1(), and TrBreaklineAdderUnitTests::test2().
boost::shared_ptr<xms::TrTin> trBuildTestTin8 | ( | ) |
Builds a simple TIN with a hole in the middle and a concavity.
/// /// 15.0 9----10----11 /// /|\ 10 | 11 / /// / | \ | / /// / 8 | 9 \|/ /// 10.0 6-----7-----8 /// |\ 5 |\ 6 |\ /// | \ | \ | \ /// | 4 \| \| 7 \ /// 5.0 2-----3-----4-----5 /// \ 0 |\ 2 | 3 / /// \ | \ | / /// \| 1 \|/ /// 0.0 0-----1 /// /// 0.0 5.0 10.0 15.0 /// ///
Definition at line 1599 of file TrTin.cpp.
References xms::TrTin::New().
Referenced by TrBreaklineAdderUnitTests::testCrossingBoundary().
boost::shared_ptr<xms::TrTin> trBuildTestTin9 | ( | ) |
Builds a TIN with long thin triangles for testing.
/// /// 10.0 7 /// |\\ /// | \ \ /// | \ \ /// | \ \ /// | 6 \ 7 \ /// | \ \ /// 5.0 4-----------5---6 /// |\ 4 /|\ \ /// | \ / | \ 5 \ /// | \ / | \ \ /// | 2 3 3 | \ \ /// | / \ | \ \ /// | / \ | 1 \\ /// |/ 0 \| \ /// 0.0 0-----------1-------------2 /// 0.0 2.5 5.0 10.0 /// ///
Definition at line 1635 of file TrTin.cpp.
References xms::TrTin::New(), and XM_COUNTOF.
Referenced by TrTinUnitTests::testRemoveLongThinTrianglesOnPerimeter().