EgtMachKernel 1.9e6 :

- aggiunto Estimator
- in taglio lama back-feed viene applicata solo all'ultimo passaggio di ritorno.
This commit is contained in:
Dario Sassi
2018-05-31 06:46:34 +00:00
parent b5833ab37c
commit 2b574d7be1
14 changed files with 1562 additions and 953 deletions
+23 -3
View File
@@ -1,7 +1,7 @@
//----------------------------------------------------------------------------
// EgalTech 2015-2015
// EgalTech 2015-2018
//----------------------------------------------------------------------------
// File : MachMgrGeneration.cpp Data : 28.10.15 Versione : 1.6j4
// File : MachMgrGeneration.cpp Data : 29.05.18 Versione : 1.8e6
// Contenuto : Implementazione gestione generazione della classe MachMgr.
//
//
@@ -17,12 +17,13 @@
#include "MachMgr.h"
#include "MachConst.h"
#include "Generator.h"
#include "Estimator.h"
using namespace std ;
//----------------------------------------------------------------------------
bool
MachMgr::Generate( const string& sCncFile, const std::string& sInfo)
MachMgr::Generate( const string& sCncFile, const string& sInfo)
{
// inizializzazione generatore
Generator genPP ;
@@ -38,3 +39,22 @@ MachMgr::Generate( const string& sCncFile, const std::string& sInfo)
return true ;
}
//----------------------------------------------------------------------------
bool
MachMgr::Estimate( const string& sEstFile, const string& sInfo)
{
// inizializzazione generatore
Estimator estPP ;
if ( ! estPP.Init( this)) {
LOG_ERROR( GetEMkLogger(), "Error on Estimate Init")
return false ;
}
// esecuzione della generazione
if ( ! estPP.Run( sEstFile, sInfo)) {
LOG_ERROR( GetEMkLogger(), "Error on Estimate Run")
return false ;
}
return true ;
}