OpenWalnut
1.5.0dev
|
Testing the WTriangleMesh class. More...
#include <WTriangleMesh_test.h>
Public Member Functions | |
void | testEqualityOperator (void) |
Two WTriangleMeshes are considered to be equal only if they have the same points in same order and the same indices of points for the triangles also in same order. More... | |
void | testComponentDecomposition (void) |
Decompose the following scene into seven components A, B, C, D, E, F, G. More... | |
void | testComponentDecompositionOnEmptyMesh (void) |
On an empty mesh an empty list should be generated. More... | |
Testing the WTriangleMesh class.
Definition at line 42 of file WTriangleMesh_test.h.
|
inline |
Decompose the following scene into seven components A, B, C, D, E, F, G.
12 o-----o o----o / \ / \ |\ /| / \ / \ | \/ | 11 o-----o-----o | /\ | \ / \ / |/ \| 10 \ / \ / o----o B 9 o-----o A 8 o 7 o |\ / \ | \ / \ | \ 6 o-----o--+--o\ 5 \ o-+--o C \ / 4 o D 3 o E (degenerated) 2 o-----o F (degenerated) 1 o-----o G \ / \ / 0 o 0 1 2 3 4 5 6 7
Definition at line 349 of file WTriangleMesh_test.h.
References WTriangleMesh::addTriangle(), WTriangleMesh::addVertex(), and tm_utils::componentDecomposition().
|
inline |
On an empty mesh an empty list should be generated.
Definition at line 439 of file WTriangleMesh_test.h.
References tm_utils::componentDecomposition().
|
inline |
Two WTriangleMeshes are considered to be equal only if they have the same points in same order and the same indices of points for the triangles also in same order.
From an objective point of view there might be different ordering resuling in the same structure, but this is to expensive to compute.
Definition at line 300 of file WTriangleMesh_test.h.
References WTriangleMesh::addTriangle(), WTriangleMesh::addVertex(), and WTriangleMesh::m_triangles.