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

Method GetVolume

Modules/DataTypesExt/src/mitkCone.cpp:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56mitk::ScalarType mitk::Cone::GetVolume()
57{
58 TimeGeometry *geometry = GetTimeGeometry();
59 return geometry->GetExtentInWorld(0) * 0.5 * geometry->GetExtentInWorld(2) * 0.5 * vnl_math::pi / 3.0 *
60 geometry->GetExtentInWorld(1);
61}

Callers 4

OnCalculateVolumeMethod · 0.45
DoCalculateFeaturesMethod · 0.45
DoCalculateFeaturesMethod · 0.45
mitkVolumeCalculatorTestFunction · 0.45

Calls 2

GetExtentInWorldMethod · 0.80
GetTimeGeometryFunction · 0.50

Tested by 1

mitkVolumeCalculatorTestFunction · 0.36