Correzioni/UtensileSferico/NB:CiSonoLineePerTest

This commit is contained in:
LorenzoM
2022-01-18 13:07:48 +01:00
parent 7e2bf848a9
commit 2f4d75b958
3 changed files with 50 additions and 20 deletions
+10 -1
View File
@@ -28,6 +28,10 @@ using namespace std ;
bool
VolZmap::Create( const Point3d& ptO, double dLengthX, double dLengthY, double dLengthZ, double dStep, bool bTriDex)
{
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////// Test Additivi //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
return CreateEmptyMap(ptO, dLengthX, dLengthY, dLengthZ, dStep, bTriDex);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Controlli sull'ammissibilità delle dimensioni lineari del grezzo e del passo
if ( dStep < EPS_SMALL || dLengthX < EPS_SMALL || dLengthY < EPS_SMALL || dLengthZ < EPS_SMALL)
return false ;
@@ -736,6 +740,11 @@ VolZmap::CreateEmptyMap( const Point3d& ptO, double dLengthX, double dLengthY, d
// Aggiornamento dello stato
m_nStatus = OK ;
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////// Test Additivi ///////////////////////////////////////////////////////////////////////////////////////////////////////////
AddTool();
SetCurrTool(0);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
return true ;
}