EgtExecutor :
- modifica prototipi in Machining Optimization.
This commit is contained in:
+2
-2
@@ -180,12 +180,12 @@ ExeOptMachSetOpenBoundForGroups( int nGroup, bool bStartVsEnd, int nFlag, double
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeOptMachGetResult( INTVECTOR& vIds)
|
||||
ExeOptMachCalculate( INTVECTOR& vIds)
|
||||
{
|
||||
vIds.clear() ;
|
||||
// Se oggetto non instanziato, errore
|
||||
if ( IsNull( s_pMO))
|
||||
return false ;
|
||||
// Recupero i risultati
|
||||
return ( s_pMO->GetResult( vIds)) ;
|
||||
return ( s_pMO->Calculate( vIds)) ;
|
||||
}
|
||||
+3
-3
@@ -268,13 +268,13 @@ LuaOptMachSetOpenBoundForGroups( lua_State* L)
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaOptMachGetResult( lua_State* L)
|
||||
LuaOptMachCalculate( lua_State* L)
|
||||
{
|
||||
// nessun parametro
|
||||
LuaClearStack( L) ;
|
||||
// eseguo calcolo di minimo percorso
|
||||
INTVECTOR vOrder ;
|
||||
bool bOk = ExeOptMachGetResult( vOrder) ;
|
||||
bool bOk = ExeOptMachCalculate( vOrder) ;
|
||||
// restituisco il risultato
|
||||
if ( bOk)
|
||||
LuaSetParam( L, vOrder) ;
|
||||
@@ -301,6 +301,6 @@ LuaInstallMachiningOptimization( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtOptMachSetOptimizationForGroups", LuaOptMachSetOptimizationForGroups) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtOptMachSetOpenBound", LuaOptMachSetOpenBound) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtOptMachSetOpenBoundForGroups", LuaOptMachSetOpenBoundForGroups) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtOptMachGetResult", LuaOptMachGetResult) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtOptMachCalculate", LuaOptMachCalculate) ;
|
||||
return bOk ;
|
||||
}
|
||||
Reference in New Issue
Block a user