EgtMachKernel :

- piccola miglioria a posizionamento pezzi nei grezzi.
This commit is contained in:
Dario Sassi
2017-08-31 08:40:36 +00:00
parent cae5f8c31b
commit 04c5d19e11
+2 -2
View File
@@ -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 ;