EgtExecutor 1.6g2 :
- ExeSplitCurve ora mette le curve risultato in Id contigui - aggiunta ExeSplitCurveAtSelfInters - aggiunta ExeGetNewId - aggiunta ExeCurveSelfIntersNbr - ExeIntersectionPoint funziona anche con auto-intersezioni - il tutto anche per le funzioni lua equivalenti.
This commit is contained in:
@@ -437,6 +437,22 @@ LuaRelocateGlob( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaGetNewId( lua_State* L)
|
||||
{
|
||||
// nessun parametro
|
||||
LuaClearStack( L) ;
|
||||
// richiedo valore nuovo Id
|
||||
int nNewId = ExeGetNewId() ;
|
||||
// restituisco il risultato
|
||||
if ( nNewId != GDB_ID_NULL)
|
||||
LuaSetReturn( L, nNewId) ;
|
||||
else
|
||||
LuaSetReturn( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaChangeId( lua_State* L)
|
||||
@@ -511,6 +527,7 @@ LuaInstallGdbObjects( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtCopyGlob", LuaCopyGlob) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtRelocate", LuaRelocate) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtRelocateGlob", LuaRelocateGlob) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetNewId", LuaGetNewId) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtChangeId", LuaChangeId) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtErase", LuaErase) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtEmptyGroup", LuaEmptyGroup) ;
|
||||
|
||||
Reference in New Issue
Block a user