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:
Dario Sassi
2015-07-07 18:30:47 +00:00
parent 57d69257f1
commit d070901ce0
7 changed files with 195 additions and 10 deletions
+17
View File
@@ -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) ;