示例#1
0
文件: mitkCuboid.cpp 项目: 0r/MITK
mitk::ScalarType mitk::Cuboid::GetVolume()
{
  TimeGeometry* geometry = GetTimeGeometry();
  return   geometry->GetExtentInWorld(0)
    * geometry->GetExtentInWorld(1)
    * geometry->GetExtentInWorld(2);
}
示例#2
0
文件: mitkCylinder.cpp 项目: 0r/MITK
mitk::ScalarType mitk::Cylinder::GetVolume()
{
  TimeGeometry* geometry = GetTimeGeometry();
  return   geometry->GetExtentInWorld(0) * 0.5
    * geometry->GetExtentInWorld(2) * 0.5
    * vnl_math::pi
    * geometry->GetExtentInWorld(1);
}