MCPcopy Create free account
hub / github.com/MITK/MITK / testGetAxisVectorExtent

Function testGetAxisVectorExtent

Modules/Core/test/mitkGeometry3DTest.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56bool testGetAxisVectorExtent(mitk::Geometry3D *geometry)
57{
58 int direction;
59 for (direction = 0; direction < 3; ++direction)
60 {
61 if (mitk::Equal(geometry->GetAxisVector(direction).GetNorm(), geometry->GetExtentInMM(direction)) == false)
62 {
63 std::cout << "[FAILED]" << std::endl;
64 return false;
65 }
66 std::cout << "[PASSED]" << std::endl;
67 }
68 return true;
69}
70
71// a part of the test requires axis-parallel coordinates
72int testIndexAndWorldConsistency(mitk::Geometry3D *geometry3d)

Callers 1

testGeometry3DFunction · 0.85

Calls 3

GetAxisVectorMethod · 0.80
GetExtentInMMMethod · 0.80
EqualFunction · 0.50

Tested by

no test coverage detected