From 04c5d19e11153aa75d5d5ffc2f46a87adc48d012 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 31 Aug 2017 08:40:36 +0000 Subject: [PATCH] EgtMachKernel : - piccola miglioria a posizionamento pezzi nei grezzi. --- MachMgrParts.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MachMgrParts.cpp b/MachMgrParts.cpp index 7f51a32..cde147c 100644 --- a/MachMgrParts.cpp +++ b/MachMgrParts.cpp @@ -88,7 +88,7 @@ MachMgr::AddPartToRawPart( int nPartId, const Point3d& ptPos, int nRawId) return false ; // recupero box del pezzo BBox3d b3Part ; - if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part)) + if ( ! m_pGeomDB->GetGlobalBBox( nPartId, b3Part, BBF_EXACT)) return false ; // recupero il riferimento del pezzo Frame3d frPart ; @@ -184,7 +184,7 @@ MachMgr::RotatePartInRawPart( int nPartId, const Vector3d& vtAx, double dAngRotD return false ; // recupero box del pezzo in locale (non cambia con la giacitura globale) BBox3d b3Box ; - if ( ! m_pGeomDB->GetLocalBBox( nPartId, b3Box)) + if ( ! m_pGeomDB->GetLocalBBox( nPartId, b3Box, BBF_EXACT)) return false ; // ne calcolo il centro e lo porto in globale Point3d ptCen ;