EgtMachKernel :
- piccola miglioria a posizionamento pezzi nei grezzi.
This commit is contained in:
+2
-2
@@ -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 ;
|
||||
|
||||
Reference in New Issue
Block a user