EgtExecutor :
- aggiunta a Exe e Lua funzione CreateVolZmapByRegionExtrusion.
This commit is contained in:
@@ -50,11 +50,36 @@ LuaCreateVolZmapBox( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaCreateVolZmapByRegionExtrusion( lua_State* L)
|
||||
{
|
||||
// 4 parametri : ParentId, SfrId dDimZ, dPrec
|
||||
int nParentId ;
|
||||
LuaCheckParam( L, 1, nParentId)
|
||||
int nSfrId ;
|
||||
LuaCheckParam( L, 2, nSfrId)
|
||||
double dDimZ ;
|
||||
LuaCheckParam( L, 3, dDimZ)
|
||||
double dPrec ;
|
||||
LuaCheckParam( L, 4, dPrec)
|
||||
LuaClearStack( L) ;
|
||||
// creo VZM per estrusione di flat region
|
||||
int nId = ExeCreateVolZmapByRegionExtrusion( nParentId, nSfrId, dDimZ, dPrec) ;
|
||||
// restituisco il risultato
|
||||
if ( nId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nId) ;
|
||||
else
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
bool
|
||||
LuaInstallGdbCreateVol( LuaMgr& luaMgr)
|
||||
{
|
||||
bool bOk = ( &luaMgr != nullptr) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapBox", LuaCreateVolZmapBox) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtVolZmapByRegionExtrusion", LuaCreateVolZmapByRegionExtrusion) ;
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user