EgtExecutor 1.6t4 :
- aggiunta ExeGetGlobFrame - migliorati controlli validità curve in GeoSnap - aggiunte a Lua EgtGetGlobFrame e EgtGetGroupGlobFrame.
This commit is contained in:
@@ -68,6 +68,40 @@ LuaGetType( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaGetGlobFrame( lua_State* L)
|
||||
{
|
||||
// 1 parametro : Id
|
||||
int nId = GDB_ID_NULL ;
|
||||
LuaGetParam( L, 1, nId) ;
|
||||
LuaClearStack( L) ;
|
||||
// recupero il frame
|
||||
Frame3d frFrame ;
|
||||
if ( ExeGetGlobFrame( nId, frFrame))
|
||||
LuaSetParam( L, frFrame) ;
|
||||
else
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaGetGroupGlobFrame( lua_State* L)
|
||||
{
|
||||
// 1 parametro : Id
|
||||
int nId = GDB_ID_NULL ;
|
||||
LuaGetParam( L, 1, nId) ;
|
||||
LuaClearStack( L) ;
|
||||
// recupero il frame
|
||||
Frame3d frFrame ;
|
||||
if ( ExeGetGroupGlobFrame( nId, frFrame))
|
||||
LuaSetParam( L, frFrame) ;
|
||||
else
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaGetGroupObjs( lua_State* L)
|
||||
@@ -525,6 +559,8 @@ LuaInstallGdbObjects( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtExistsObj", LuaExistsObj) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetParent", LuaGetParent) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetType", LuaGetType) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetGlobFrame", LuaGetGlobFrame) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetGroupGlobFrame", LuaGetGroupGlobFrame) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetGroupObjs", LuaGetGroupObjs) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetFirstInGroup", LuaGetFirstInGroup) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetNext", LuaGetNext) ;
|
||||
|
||||
Reference in New Issue
Block a user