EgtExecutor :

- funzione Exe e Lua CAvGetToolOutline con parametro bApprox in più
- aggiunta funzione Exe e Lua VolZmapGetToolOutline.
This commit is contained in:
Dario Sassi
2018-12-31 09:25:44 +00:00
parent 1c9e4ab44a
commit 562048fc9a
4 changed files with 74 additions and 6 deletions
+23
View File
@@ -234,6 +234,28 @@ LuaVolZmapSetChiselTool( lua_State* L)
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapGetToolOutline( lua_State* L)
{
// 2 o 3 parametri : nId, nDestGrpId [, bApprox]
int nId ;
LuaCheckParam( L, 1, nId)
int nDestGrpId ;
LuaCheckParam( L, 2, nDestGrpId)
bool bApprox = false ;
LuaGetParam( L, 3, bApprox) ;
LuaClearStack( L) ;
// recupero il profilo dell'utensile associato a Zmap indicato
int nNewId = ExeVolZmapGetToolOutline( nId, nDestGrpId, bApprox) ;
// restituisco il risultato
if ( nNewId != GDB_ID_NULL)
LuaSetParam( L, nNewId) ;
else
LuaSetParam( L) ;
return 1 ;
}
//----------------------------------------------------------------------------
static int
LuaVolZmapMillingStep( lua_State* L)
@@ -375,6 +397,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( "EgtVolZmapGetToolOutline", LuaVolZmapGetToolOutline) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapMillingStep", LuaVolZmapMillingStep) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapGetDepth", LuaVolZmapGetDepth) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapAvoidBox", LuaVolZmapAvoidBox) ;