EgtExecutor 1.6g3 :
- correzione controlli in ExeCreateGeoFrame - ExeInitGeomDB rinominata ExeInitContext - aggiunta ExeDeleteContext - migliorato log di ExeExit - aggiunta possibilità di leggere e scrivere variabili LUA_Base.cpp - aggiunta possibilità di chiamare funzioni Lua.
This commit is contained in:
+27
-27
@@ -32,7 +32,7 @@ LuaInvertCurve( lua_State* L)
|
||||
// eseguo inversione curve
|
||||
bool bOk = ExeInvertCurve( vId) ;
|
||||
// restituisco il risultato
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ LuaOffsetCurve( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// offset della curva
|
||||
bool bOk = ExeOffsetCurve( nId, dDist, nType) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ LuaChangeClosedCurveStartPoint( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// modifico il punto iniziale
|
||||
bool bOk = ExeChangeClosedCurveStartPoint( nId, ptStart, nRefType) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ LuaModifyCurveStartPoint( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// modifico il punto iniziale
|
||||
bool bOk = ExeModifyCurveStartPoint( nId, ptStart, nRefType) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ LuaModifyCurveEndPoint( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// modifico il punto finale
|
||||
bool bOk = ExeModifyCurveEndPoint( nId, ptEnd, nRefType) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ LuaModifyCurveExtrusion( lua_State* L)
|
||||
// modifico il vettore estrusione
|
||||
bool bOk = ExeModifyCurveExtrusion( vId, vtExtr, nRefType) ;
|
||||
// restituisco il risultato
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ LuaModifyCurveThickness( lua_State* L)
|
||||
// modifico lo spessore di estrusione
|
||||
bool bOk = ExeModifyCurveThickness( vId, dThick) ;
|
||||
// restituisco il risultato
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ LuaTrimCurveStartAtLen( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// taglio la curva all'inizio
|
||||
bool bOk = ExeTrimCurveStartAtLen( nId, dLen) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ LuaTrimCurveEndAtLen( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// taglio la curva alla fine
|
||||
bool bOk = ExeTrimCurveEndAtLen( nId, dLen) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ LuaTrimCurveStartAtParam( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// taglio la curva all' inizio
|
||||
bool bOk = ExeTrimCurveStartAtParam( nId, dPar) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ LuaTrimCurveEndAtParam( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// taglio la curva alla fine
|
||||
bool bOk = ExeTrimCurveEndAtParam( nId, dPar) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ LuaTrimCurveStartEndAtParam( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// taglio la curva alla fine
|
||||
bool bOk = ExeTrimCurveStartEndAtParam( nId, dParS, dParE) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ LuaTrimExtendCurveByLen( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// taglio o allungo la curva nell'estremo più vicino al punto
|
||||
bool bOk = ExeTrimExtendCurveByLen( nId, dLen, ptNear, nRefType) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -259,9 +259,9 @@ LuaSplitCurve( lua_State* L)
|
||||
// divido la curva nel punto
|
||||
int nFirstId = ExeSplitCurve( nId, nParts) ;
|
||||
if ( nFirstId != GDB_ID_NULL)
|
||||
LuaSetReturn( L, nFirstId) ;
|
||||
LuaSetParam( L, nFirstId) ;
|
||||
else
|
||||
LuaSetReturn( L) ;
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -280,9 +280,9 @@ LuaSplitCurveAtPoint( lua_State* L)
|
||||
// divido la curva nel punto
|
||||
int nNewId = ExeSplitCurveAtPoint( nId, ptOn, nRefType) ;
|
||||
if ( nNewId != GDB_ID_NULL)
|
||||
LuaSetReturn( L, nNewId) ;
|
||||
LuaSetParam( L, nNewId) ;
|
||||
else
|
||||
LuaSetReturn( L) ;
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -298,10 +298,10 @@ LuaSplitCurveAtSelfInters( lua_State* L)
|
||||
int nCount ;
|
||||
int nNewId = ExeSplitCurveAtSelfInters( nId, &nCount) ;
|
||||
if ( nNewId != GDB_ID_NULL)
|
||||
LuaSetReturn( L, nNewId) ;
|
||||
LuaSetParam( L, nNewId) ;
|
||||
else
|
||||
LuaSetReturn( L) ;
|
||||
LuaSetReturn( L, nCount) ;
|
||||
LuaSetParam( L) ;
|
||||
LuaSetParam( L, nCount) ;
|
||||
return 2 ;
|
||||
}
|
||||
|
||||
@@ -320,9 +320,9 @@ LuaApproxCurve( lua_State* L)
|
||||
// approssimazione della curva con rette
|
||||
int nNewId = ExeApproxCurve( nId, nApprType, dLinTol) ;
|
||||
if ( nNewId != GDB_ID_NULL)
|
||||
LuaSetReturn( L, nNewId) ;
|
||||
LuaSetParam( L, nNewId) ;
|
||||
else
|
||||
LuaSetReturn( L) ;
|
||||
LuaSetParam( L) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -338,7 +338,7 @@ LuaModifyCurveArcRadius( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// modifica del raggio
|
||||
bool bOk = ExeModifyCurveArcRadius( nId, dNewRad) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
@@ -354,10 +354,10 @@ LuaExplodeCurveCompo( lua_State* L)
|
||||
int nCount ;
|
||||
int nFirstId = ExeExplodeCurveCompo( nId, &nCount) ;
|
||||
if ( nFirstId != GDB_ID_NULL)
|
||||
LuaSetReturn( L, nFirstId) ;
|
||||
LuaSetParam( L, nFirstId) ;
|
||||
else
|
||||
LuaSetReturn( L) ;
|
||||
LuaSetReturn( L, nCount) ;
|
||||
LuaSetParam( L) ;
|
||||
LuaSetParam( L, nCount) ;
|
||||
return 2 ;
|
||||
}
|
||||
|
||||
@@ -373,7 +373,7 @@ LuaMergeCurvesInCurveCompo( lua_State* L)
|
||||
LuaClearStack( L) ;
|
||||
// esplosione della curva composita
|
||||
bool bOk = ExeMergeCurvesInCurveCompo( nId, dLinTol) ;
|
||||
LuaSetReturn( L, bOk) ;
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user