2 #include "figureCuttingCylinderModel.h"
4 figureCuttingCylinderModel::figureCuttingCylinderModel()
7 //----------------------------------------------------------------------------
8 figureCuttingCylinderModel::~figureCuttingCylinderModel() // virtual
11 //----------------------------------------------------------------------------
12 bool figureCuttingCylinderModel::IfPointInside(double x, double y, double z) // virtual
19 _inversModel->MultiplyPoint (in, out);
22 if ((sqrt( out[0]*out[0] + out[2]*out[2] )<0.5 ) && (out[1]>-0.5) && (out[1]<0.5) )
28 //----------------------------------------------------------------------------
29 double figureCuttingCylinderModel::GetTheoricVolume() // virtual
31 double piTMP=3.14159265;
32 return piTMP*(_sx/2)*(_sz/2)*_sy;
34 //----------------------------------------------------------------------------
35 char *figureCuttingCylinderModel::GetName() // virtual
39 //----------------------------------------------------------------------------