From d7cd0755fb299433cdefe9efec4e195fef91616f Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 12 Mar 2019 12:37:54 +0000 Subject: [PATCH] EgtMachKernel 2.1c3 : - corretto un piccolo errore di approssimazione in AddRawPartWithPart. --- EgtMachKernel.rc | Bin 11774 -> 11774 bytes MachMgrRawParts.cpp | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index fe6bb3737958c08dda551a13c256c3c6150b5482..0daef9573bfffd6c1c81e169c229d3afae19dffb 100644 GIT binary patch delta 97 zcmewt{V#gMFE&Qw&A-`fnHh~IKa|wnoW?bQ1uSxrY4Qod0+^@}R1`^_2jk{d(jGv4 NK<#LXK~l;gTmUD-Bai?9 delta 97 zcmewt{V#gMFE&P_&A-`fnHh~HKa|wnoW?bQ1uSxrY4Qod0+^@}R1`^_2jk{d(jGv4 NK<#LXK~l;gTmU8!BZvS1 diff --git a/MachMgrRawParts.cpp b/MachMgrRawParts.cpp index 7a3b617..c551faa 100644 --- a/MachMgrRawParts.cpp +++ b/MachMgrRawParts.cpp @@ -189,7 +189,7 @@ MachMgr::AddRawPartWithPart( int nPartId, int nCrvSrfId, double dOverMat, Color // calcolo il punto di inserimento nel grezzo // determino l'ingombro del pezzo BBox3d b3Part ; - if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part)) + if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT)) return GDB_ID_NULL ; // recupero il box del solido del grezzo in globale int nRawSolidId = m_pGeomDB->GetFirstNameInGroup( nRawId, MACH_RAW_SOLID) ; @@ -203,7 +203,7 @@ MachMgr::AddRawPartWithPart( int nPartId, int nCrvSrfId, double dOverMat, Color else if ( ( nGtype & GEO_CURVE) != 0) { // determino l'ingombro del pezzo BBox3d b3Part ; - if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part)) + if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT)) return GDB_ID_NULL ; // inserisco il grezzo double dZmin = b3Part.GetMin().z ; @@ -224,7 +224,7 @@ MachMgr::AddRawPartWithPart( int nPartId, int nCrvSrfId, double dOverMat, Color else { // determino l'ingombro del pezzo BBox3d b3Part ; - if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part)) + if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT)) return GDB_ID_NULL ; // deduco i dati del grezzo b3Part.Expand( dOverMat, dOverMat, 0) ;