Last change
on this file since 25a549 was 6dd8d3, checked in by heber <heber@…>, 15 years ago |
LinkedNodes is now declared inside LinkedCell and some new functions.
- as prepraratory measure we placed LinkedNodes as typedef into LinkedCell class. This caused same namespace changes elsewhere where LinkedNodes is used.
- new function GetallNeighbours() which performs going through linked cells.
- new function GetPointsInsideaSphere() which performs going through linked cells and returns all neighbours up to a given distance to a given center.
Note: New functions are not yet used elsewhere. Unit test has to be written beforehand.
Signed-off-by: heber <heber@…>
|
-
Property mode
set to
100644
|
File size:
946 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * tesselationunittest.hpp
|
---|
3 | *
|
---|
4 | * Created on: Aug 26, 2009
|
---|
5 | * Author: heber
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef TESSELATIONUNITTEST_HPP_
|
---|
9 | #define TESSELATIONUNITTEST_HPP_
|
---|
10 |
|
---|
11 | /*********************************************** includes ***********************************/
|
---|
12 |
|
---|
13 | #include <cppunit/extensions/HelperMacros.h>
|
---|
14 |
|
---|
15 | #include "linkedcell.hpp"
|
---|
16 | #include "tesselation.hpp"
|
---|
17 |
|
---|
18 | /********************************************** Test classes **************************************/
|
---|
19 |
|
---|
20 | class TesselationTest : public CppUnit::TestFixture
|
---|
21 | {
|
---|
22 | CPPUNIT_TEST_SUITE( TesselationTest) ;
|
---|
23 | CPPUNIT_TEST ( GetAllTrianglesTest );
|
---|
24 | CPPUNIT_TEST ( ContainmentTest );
|
---|
25 | CPPUNIT_TEST_SUITE_END();
|
---|
26 |
|
---|
27 | public:
|
---|
28 | void setUp();
|
---|
29 | void tearDown();
|
---|
30 | void GetAllTrianglesTest();
|
---|
31 | void ContainmentTest();
|
---|
32 |
|
---|
33 |
|
---|
34 | private:
|
---|
35 | class Tesselation *TesselStruct;
|
---|
36 | LinkedCell::LinkedNodes Corners;
|
---|
37 | class LinkedCell *LinkedList;
|
---|
38 | };
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
42 | #endif /* TESSELATIONUNITTEST_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.