EgtMachKernel :

- modificata Operation::GetRawGlobBox per tener conto dell'ingombro utensile.
This commit is contained in:
Dario Sassi
2017-01-18 07:37:53 +00:00
parent e184799057
commit 6e63197ac4
6 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -358,7 +358,7 @@ Operation::GetDistanceFromRawBottom( int nPhase, int nPathId, double dToler, dou
//----------------------------------------------------------------------------
bool
Operation::GetRawGlobBox( int nPhase, int nPathId, BBox3d& b3Raw)
Operation::GetRawGlobBox( int nPhase, int nPathId, double dToler, BBox3d& b3Raw)
{
if ( m_pMchMgr == nullptr || m_pGeomDB == nullptr)
return false ;
@@ -368,7 +368,7 @@ Operation::GetRawGlobBox( int nPhase, int nPathId, BBox3d& b3Raw)
BBox3d b3Compo ;
if ( ! m_pGeomDB->GetGlobalBBox( nPathId, b3Compo))
return false ;
b3Compo.Expand( 10 * EPS_SMALL, 10 * EPS_SMALL, 0) ;
b3Compo.Expand( dToler, dToler, 0) ;
int nRawId = m_pMchMgr->GetFirstRawPart() ;
while ( nRawId != GDB_ID_NULL) {
// verifico che il grezzo compaia nella fase