EgtExecutor 1.9g1 :

- aggiunta gestione import punti in Exe e LUA
- corretta gestione regione sotto con lati inclinati interni di pezzi piatti (flatParts)
- aggiunta funzione Exe e Lua CAvGetToolOutline per avere profilo di utensile in uso nella CollisionAvoidance.
This commit is contained in:
Dario Sassi
2018-07-05 10:28:52 +00:00
parent aaeeab4d83
commit be54bcf382
9 changed files with 326 additions and 147 deletions
+17 -1
View File
@@ -44,7 +44,7 @@ LuaCAvSetStdTool( lua_State* L)
static int
LuaCAvSetAdvTool( lua_State* L)
{
// 5 parametri : dToolLen, dToolDiam, dToolCornR
// 5 parametri : dToolLen, dToolDiam, dTipLen, dTipDiam, dToolCornR
double dToolLen ;
LuaCheckParam( L, 1, dToolLen)
double dToolDiam ;
@@ -78,6 +78,21 @@ LuaCAvSetGenTool( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaCAvGetToolOutline( lua_State* L)
{
// 1 parametro : nDestGrpId
int nDestGrpId ;
LuaCheckParam( L, 1, nDestGrpId)
LuaClearStack( L) ;
// recupero profilo dell'utensile per Collision Avoidance
int nId = ExeCAvGetToolOutline( nDestGrpId) ;
// restituisco il risultato
LuaSetParam( L, nId) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaCAvToolPosStm( lua_State* L)
@@ -134,6 +149,7 @@ LuaInstallCAvTool( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtCAvSetStdTool", LuaCAvSetStdTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCAvSetAdvTool", LuaCAvSetAdvTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCAvSetGenTool", LuaCAvSetGenTool) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCAvGetToolOutline", LuaCAvGetToolOutline) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCAvToolPosStm", LuaCAvToolPosStm) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtCAvToolPathStm", LuaCAvToolPathStm) ;
return bOk ;