EgtExecutor 2.1l3 :
- aggiunta funzione Exe/Lua SurfTmSplit.
This commit is contained in:
@@ -448,6 +448,27 @@ LuaSurfTmIntersect( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaSurfTmSplit( lua_State* L)
|
||||
{
|
||||
// 2 parametro : nId, nSplitterId
|
||||
int nId ;
|
||||
LuaCheckParam( L, 1, nId)
|
||||
int nSplitterId ;
|
||||
LuaCheckParam( L, 2, nSplitterId)
|
||||
LuaClearStack( L) ;
|
||||
// divido la prima superficie in base alla seconda
|
||||
int nCount ;
|
||||
int nFirstId = ExeSurfTmSplit( nId, nSplitterId, &nCount) ;
|
||||
if ( nFirstId != GDB_ID_NULL)
|
||||
LuaSetParam( L, nFirstId) ;
|
||||
else
|
||||
LuaSetParam( L) ;
|
||||
LuaSetParam( L, nCount) ;
|
||||
return 2 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
bool
|
||||
LuaInstallGdbModifySurf( LuaMgr& luaMgr)
|
||||
@@ -474,5 +495,6 @@ LuaInstallGdbModifySurf( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfTmAdd", LuaSurfTmAdd) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfTmSubtract", LuaSurfTmSubtract) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfTmIntersect", LuaSurfTmIntersect) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSurfTmSplit", LuaSurfTmSplit) ;
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user