OpenWalnut
1.5.0dev
|
Tests for the class computing the actual marching cubes. More...
#include <WMarchingCubesAlgorithm_test.h>
Public Member Functions | |
void | testInterpolate () |
Test interpolate on edge. More... | |
void | testGetVertexID () |
Test computation of veretexID. More... | |
void | testGetEdgeID () |
Test computation of egeId. More... | |
void | testCalculateIntersectionUnsignedChar () |
Test calculateIntersection with unsigned char. More... | |
void | testCalculateIntersectionFloat () |
Test calculateIntersection with float. More... | |
Tests for the class computing the actual marching cubes.
Definition at line 36 of file WMarchingCubesAlgorithm_test.h.
|
inline |
Test calculateIntersection with float.
Definition at line 159 of file WMarchingCubesAlgorithm_test.h.
References WMarchingCubesAlgorithm::calculateIntersection(), WMarchingCubesAlgorithm::m_nCellsX, WMarchingCubesAlgorithm::m_nCellsY, WMarchingCubesAlgorithm::m_nCellsZ, WMarchingCubesAlgorithm::m_tIsoLevel, WPointXYZId::newID, WPointXYZId::x, WPointXYZId::y, and WPointXYZId::z.
|
inline |
Test calculateIntersection with unsigned char.
Definition at line 121 of file WMarchingCubesAlgorithm_test.h.
References WMarchingCubesAlgorithm::calculateIntersection(), WMarchingCubesAlgorithm::m_nCellsX, WMarchingCubesAlgorithm::m_nCellsY, WMarchingCubesAlgorithm::m_nCellsZ, WMarchingCubesAlgorithm::m_tIsoLevel, WPointXYZId::newID, WPointXYZId::x, WPointXYZId::y, and WPointXYZId::z.
|
inline |
Test computation of egeId.
Definition at line 88 of file WMarchingCubesAlgorithm_test.h.
References WMarchingCubesAlgorithm::getEdgeID(), WMarchingCubesAlgorithm::m_nCellsX, WMarchingCubesAlgorithm::m_nCellsY, and WMarchingCubesAlgorithm::m_nCellsZ.
|
inline |
Test computation of veretexID.
Definition at line 67 of file WMarchingCubesAlgorithm_test.h.
References WMarchingCubesAlgorithm::getVertexID(), WMarchingCubesAlgorithm::m_nCellsX, WMarchingCubesAlgorithm::m_nCellsY, and WMarchingCubesAlgorithm::m_nCellsZ.
|
inline |
Test interpolate on edge.
Definition at line 42 of file WMarchingCubesAlgorithm_test.h.
References WMarchingCubesAlgorithm::interpolate(), WMarchingCubesAlgorithm::m_tIsoLevel, WPointXYZId::newID, WPointXYZId::x, WPointXYZId::y, and WPointXYZId::z.