EgtExecutor :

- gestito l'ordine delle curve di bordo nella TrimmingGetToolOrientationLines.
This commit is contained in:
Daniele Bariletti
2026-05-19 17:31:07 +02:00
parent efe2bba18b
commit a2c8797930
2 changed files with 31 additions and 19 deletions
+14 -12
View File
@@ -287,7 +287,7 @@ LuaTrimmingGetSurfBzSyncPoints( lua_State* L)
static int
LuaTrimmingGetToolOrientationLines( lua_State* L)
{
// 13 parametri : nParentId, nMainEdgeId, nOtherEdgeId, nSyncLayerId, nLineSId, nLineEId,
// 14 parametri : nParentId, nMainEdgeId, nOtherEdgeId, bMainIsFirstBorder, nSyncLayerId, nLineSId, nLineEId,
// dThetaStart, dPhiStart, dThetaEnd, dPhiEnd, dInterpLenS, dInterpLenE, dLinTol
int nParentId ;
LuaCheckParam( L, 1, nParentId)
@@ -295,30 +295,32 @@ LuaTrimmingGetToolOrientationLines( lua_State* L)
LuaCheckParam( L, 2, nMainEdgeId)
int nOtherEdgeId ;
LuaCheckParam( L, 3, nOtherEdgeId)
bool bMainIsFirstBorder ;
LuaCheckParam( L, 4, bMainIsFirstBorder)
int nLineSId ;
LuaCheckParam( L, 4, nLineSId)
LuaCheckParam( L, 5, nLineSId)
int nLineEId ;
LuaCheckParam( L, 5, nLineEId)
LuaCheckParam( L, 6, nLineEId)
int nSyncLayerId ;
LuaCheckParam( L, 6, nSyncLayerId)
LuaCheckParam( L, 7, nSyncLayerId)
double dThetaStart ;
LuaCheckParam( L, 7, dThetaStart)
LuaCheckParam( L, 8, dThetaStart)
double dPhiStart ;
LuaCheckParam( L, 8, dPhiStart)
LuaCheckParam( L, 9, dPhiStart)
double dThetaEnd ;
LuaCheckParam( L, 9, dThetaEnd)
LuaCheckParam( L, 10, dThetaEnd)
double dPhiEnd ;
LuaCheckParam( L, 10, dPhiEnd) ;
LuaCheckParam( L, 11, dPhiEnd) ;
double dInterpLenS ;
LuaCheckParam( L, 11, dInterpLenS)
LuaCheckParam( L, 12, dInterpLenS)
double dInterpLenE ;
LuaCheckParam( L, 12, dInterpLenE)
LuaCheckParam( L, 13, dInterpLenE)
double dLinTol ;
LuaCheckParam( L, 13, dLinTol)
LuaCheckParam( L, 14, dLinTol)
LuaClearStack( L) ;
// Inserisco i tratti lineari associati calcolati lungo il percorso
int nInterpStartId = GDB_ID_NULL, nStartId = GDB_ID_NULL, nEndId = GDB_ID_NULL, nInterpEndId = GDB_ID_NULL ;
bool bOk = ExeTrimmingGetToolOrientationLines( nParentId, nMainEdgeId, nOtherEdgeId, nSyncLayerId, nLineSId, nLineEId,
bool bOk = ExeTrimmingGetToolOrientationLines( nParentId, nMainEdgeId, nOtherEdgeId, bMainIsFirstBorder, nSyncLayerId, nLineSId, nLineEId,
dThetaStart, dPhiStart, dThetaEnd, dPhiEnd, dInterpLenS, dInterpLenE, dLinTol,
nInterpStartId, nStartId, nEndId, nInterpEndId) ;
LuaSetParam( L, bOk) ;