EgtExecutor 1.6w2 :

- aggiunte funzioni Exe e Lua per Zmap
- corretta fnzione disegno sfera.
This commit is contained in:
Dario Sassi
2016-11-07 08:00:40 +00:00
parent 4b95b19e9c
commit 20e88e8211
8 changed files with 193 additions and 5 deletions
+24 -1
View File
@@ -54,7 +54,7 @@ LuaCreateVolZmapBox( lua_State* L)
static int
LuaCreateVolZmapByRegionExtrusion( lua_State* L)
{
// 4 parametri : ParentId, SfrId dDimZ, dPrec
// 4 parametri : ParentId, SfrId, dDimZ, dPrec
int nParentId ;
LuaCheckParam( L, 1, nParentId)
int nSfrId ;
@@ -74,6 +74,28 @@ LuaCreateVolZmapByRegionExtrusion( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaCreateVolZmapFromSurfTm( lua_State* L)
{
// 4 parametri : ParentId, StmId, dPrec
int nParentId ;
LuaCheckParam( L, 1, nParentId)
int nStmId ;
LuaCheckParam( L, 2, nStmId)
double dPrec ;
LuaCheckParam( L, 3, dPrec)
LuaClearStack( L) ;
// creo VZM da superficie trimesh
int nId = ExeCreateVolZmapFromSurfTm( nParentId, nStmId, dPrec) ;
// restituisco il risultato
if ( nId != GDB_ID_NULL)
LuaSetParam( L, nId) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
bool
LuaInstallGdbCreateVol( LuaMgr& luaMgr)
@@ -81,5 +103,6 @@ LuaInstallGdbCreateVol( LuaMgr& luaMgr)
bool bOk = ( &luaMgr != nullptr) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapBox", LuaCreateVolZmapBox) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapByRegionExtrusion", LuaCreateVolZmapByRegionExtrusion) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapFromSurfTm", LuaCreateVolZmapFromSurfTm) ;
return bOk ;
}