EgtExecutor :

- piccole correzioni.
This commit is contained in:
Dario Sassi
2026-01-07 09:23:32 +01:00
parent b1fcb75e4f
commit fb188d566e
2 changed files with 26 additions and 22 deletions
+3 -2
View File
@@ -92,6 +92,7 @@ LuaTrimmingGetSurfTmFromStmFaces( lua_State* L)
INTVECTOR vFaces ;
LuaCheckParam( L, 3, vFaces)
LuaClearStack( L) ;
// Eseguo
int nNewSurfId = ExeTrimmingGetSurfTmFromStmFaces( nParentId, nSurfId, vFaces) ;
LuaSetParam( L, nNewSurfId) ;
return 1 ;
@@ -178,7 +179,7 @@ LuaTrimmingGetBordersByNormals( lua_State* L)
static int
LuaTrimmingGetFinalBorders( lua_State* L)
{
// 4 o 5 o 6 o 7 parametri : nParentId, vCrvBezierId, dLinTol, dAngTol [,vBreakingPts] [,dThick] [,dThickTol]
// 4 o 5 o 6 o 7 parametri : nParentId, vCrvBezierId, dLinTol, dAngTol [,vBreakingPts] [,dThick [,dThickTol]]
int nParentId ;
LuaCheckParam( L, 1, nParentId)
INTVECTOR vCrvBezierId ;
@@ -188,10 +189,10 @@ LuaTrimmingGetFinalBorders( lua_State* L)
double dAngTol ;
LuaCheckParam( L, 4, dAngTol)
PNTVECTOR vBreakingPts ;
double dThick = 0., dThickTol = EPS_SMALL ;
int nInd = 5 ;
if ( LuaGetParam( L, nInd, vBreakingPts))
++ nInd ;
double dThick = 0., dThickTol = EPS_SMALL ;
if ( LuaGetParam( L, nInd, dThick)) {
if ( ! LuaGetParam( L, nInd + 1, dThickTol)) {
LuaClearStack( L) ;