OpenWalnut  1.5.0dev
Public Member Functions | List of all members
WTriangleMeshTest Class Reference

Testing the WTriangleMesh class. More...

#include <WTriangleMesh_test.h>

+ Inheritance diagram for WTriangleMeshTest:
+ Collaboration diagram for WTriangleMeshTest:

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...
 

Detailed Description

Testing the WTriangleMesh class.

Definition at line 42 of file WTriangleMesh_test.h.

Member Function Documentation

◆ testComponentDecomposition()

void WTriangleMeshTest::testComponentDecomposition ( void  )
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().

+ Here is the call graph for this function:

◆ testComponentDecompositionOnEmptyMesh()

void WTriangleMeshTest::testComponentDecompositionOnEmptyMesh ( void  )
inline

On an empty mesh an empty list should be generated.

Definition at line 439 of file WTriangleMesh_test.h.

References tm_utils::componentDecomposition().

+ Here is the call graph for this function:

◆ testEqualityOperator()

void WTriangleMeshTest::testEqualityOperator ( void  )
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.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: