From 358915d2e7a89275ba586ad6259b5eed5fcee570 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Mon, 6 Mar 2017 12:24:23 +0000 Subject: [PATCH] EgtExecutor 1.8c2 : - piccola modifica in nesting per allineamento di riferimento con bordo sinistro inclinato. --- EXE_NstPartNesting.cpp | 6 ++++++ EgtExecutor.rc | Bin 15088 -> 15088 bytes 2 files changed, 6 insertions(+) diff --git a/EXE_NstPartNesting.cpp b/EXE_NstPartNesting.cpp index 5a7939c..62d985d 100644 --- a/EXE_NstPartNesting.cpp +++ b/EXE_NstPartNesting.cpp @@ -328,6 +328,12 @@ ExeCreateReferenceRegion( int nParentId, int nOutCrvId, bool bBottomUp) // prossimo punto bFound = PL.GetNextUPoint( &dPar, &ptQ, true) ; } + // verifiche su box del lato a sinistra + const double MAX_WIDTH_SIDE = 200 ; + double dLeftDimX = b3Left.GetMax().x - b3Left.GetMin().x ; + if ( dLeftDimX > MAX_WIDTH_SIDE) { + b3Left.Translate( Vector3d( -dLeftDimX + 0.25 * MAX_WIDTH_SIDE, 0, 0)) ; + } // costruisco la regione di riferimento PolyLine PL2 ; if ( bBottomUp) { diff --git a/EgtExecutor.rc b/EgtExecutor.rc index ddf24f2c52e267e944cc42e0e3aa16dcc6b4be5f..1482f843a94b7b7155bce180197767f9f9a1284f 100644 GIT binary patch delta 79 zcmexR`k{2gFE&P_&A-`PnSqoe*K!sx?>N)s4T4pSMw1=6k~jAW*?>e(i-FY$N+HxV MD8kglDNT|90Gd4;g#Z8m delta 79 zcmexR`k{2gFE&QQ&A-`PnSqoe*K!sx?>N)s4T4pShLat+k~jAW*?>e(i-FY$N+HxV MD8kglDNT|90GRO`eE