From cd6c3d8d2a0713b029c31cfe6ff06043def5f839 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sun, 6 Sep 2015 08:27:15 +0000 Subject: [PATCH] EgtExecutor : - altre migliorie a ExePackPart. --- EXE_Nesting.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXE_Nesting.cpp b/EXE_Nesting.cpp index 29239bd..b68cc92 100644 --- a/EXE_Nesting.cpp +++ b/EXE_Nesting.cpp @@ -495,7 +495,7 @@ ExePackPart( int nId, double dXmax, double dOffs) VERIFY_GEOMDB( pGeomDB, false) // Determino il box del pezzo BBox3d b3Part ; - if ( ! pGeomDB->GetGlobalBBox( nId, b3Part, BBF_IGNORE_TEXT)) + if ( ! pGeomDB->GetGlobalBBox( nId, b3Part, BBF_ONLY_VISIBLE | BBF_IGNORE_TEXT | BBF_IGNORE_DIM)) return false ; double dLarPz = b3Part.GetMax().x - b3Part.GetMin().x ; // Cerco prima posizione utile @@ -506,7 +506,7 @@ ExePackPart( int nId, double dXmax, double dOffs) while ( nId2 != GDB_ID_NULL) { if ( nId2 != nId) { BBox3d b3Part2 ; - if ( pGeomDB->GetGlobalBBox( nId2, b3Part2)) { + if ( pGeomDB->GetGlobalBBox( nId2, b3Part2, BBF_ONLY_VISIBLE | BBF_IGNORE_TEXT | BBF_IGNORE_DIM)) { if ( b3Part2.GetMin().y < dYtop + 0.5 * dOffs) { dXok = max( dXok, b3Part2.GetMax().x + dOffs) ; }