1 #include "figureCuttingSphereModel.h"
3 //----------------------------------------------------------------------------
4 //----------------------------------------------------------------------------
5 //----------------------------------------------------------------------------
6 figureCuttingSphereModel::figureCuttingSphereModel()
9 //----------------------------------------------------------------------------
10 figureCuttingSphereModel::~figureCuttingSphereModel() // virtual
13 //----------------------------------------------------------------------------
14 bool figureCuttingSphereModel::IfPointInside(double x, double y, double z) // virtual
21 _inversModel->MultiplyPoint (in, out);
24 if (sqrt( out[0]*out[0] + out[1]*out[1] + out[2]*out[2] )<0.5 )
30 //----------------------------------------------------------------------------
31 double figureCuttingSphereModel::GetTheoricVolume() // virtual
33 double piTMP=3.14159265;
34 return (4.0/3.0) * piTMP * (_sx/2)*(_sy/2)*(_sz/2);
36 //----------------------------------------------------------------------------
37 char *figureCuttingSphereModel::GetName() // virtual