EgtExecutor :

- aggiunta funzione Exe e Lua VolZmapResetTool.
This commit is contained in:
Dario Sassi
2019-05-20 06:47:56 +00:00
parent 3cbb3fb604
commit 08892676cc
2 changed files with 38 additions and 0 deletions
+16
View File
@@ -234,6 +234,21 @@ LuaVolZmapSetChiselTool( lua_State* L)
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapResetTool( lua_State* L)
{
// 1 parametro : vIds
INTVECTOR vIds ;
LuaCheckParam( L, 1, vIds)
LuaClearStack( L) ;
// reset utensile a Zmap indicati
bool bOk = ExeVolZmapResetTool( vIds) ;
// restituisco il risultato
LuaSetParam( L, bOk) ;
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapGetToolOutline( lua_State* L)
@@ -447,6 +462,7 @@ LuaInstallGdbModifyVol( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapSetGenTool", LuaVolZmapSetGenTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapSetMortiserTool", LuaVolZmapSetMortiserTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapSetChiselTool", LuaVolZmapSetChiselTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapResetTool", LuaVolZmapResetTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapGetToolOutline", LuaVolZmapGetToolOutline) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapMillingStep", LuaVolZmapMillingStep) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapGetDepth", LuaVolZmapGetDepth) ;