EgtMachKernel :
- modifiche per fresature con lama con testa da sopra e con accesso da sotto il pezzo.
This commit is contained in:
+5
-3
@@ -2797,7 +2797,7 @@ Pocketing::AddSpiralIn( const ICurveComposite* pCompo, const Vector3d& vtTool, c
|
||||
if ( ! GetElevation( m_nPhase, ptStart - 10 * EPS_SMALL * vtTool, vtTool, GetRadiusForStartEndElevation(), vtTool, dStElev))
|
||||
dStElev = dElev ;
|
||||
dStElev -= ( ptP1 - ptStart) * vtExtr ;
|
||||
bool bUnderStart = m_bAboveHead && GetPointUnderRaw( ptP1, vtTool, GetRadiusForStartEndElevation(), m_TParams.m_dLen, dStElev) ;
|
||||
bool bUnderStart = m_bAboveHead && GetPointUnderRaw( ptP1, vtTool, GetRadiusForStartEndElevation(), m_TParams.m_dLen, false, dSafeZ, dStElev) ;
|
||||
// se attacco a zigzag o a spirale o a scivolo, l'elevazione va nell'attacco
|
||||
if ( GetLeadInType() == POCKET_LI_ZIGZAG ||
|
||||
GetLeadInType() == POCKET_LI_HELIX ||
|
||||
@@ -3745,7 +3745,8 @@ Pocketing::AddLeadOut( const Point3d& ptEnd, const Vector3d& vtEnd, const Vector
|
||||
if ( GetElevation( m_nPhase, ptP1 - 10 * EPS_SMALL * vtN, vtN, GetRadiusForStartEndElevation(), vtN, dEndElev))
|
||||
dElev = dEndElev ;
|
||||
// correzione per punto sotto il grezzo con testa normale da sopra
|
||||
bool bUnderEnd = m_bAboveHead && ! m_bAggrBottom && GetPointUnderRaw( ptP1, vtN, GetRadiusForStartEndElevation(), m_TParams.m_dLen, dElev) ;
|
||||
double dSafeZ = m_pMchMgr->GetCurrMachiningsMgr()->GetSafeZ() ;
|
||||
bool bUnderEnd = m_bAboveHead && ! m_bAggrBottom && GetPointUnderRaw( ptP1, vtN, GetRadiusForStartEndElevation(), m_TParams.m_dLen, false, dSafeZ, dElev) ;
|
||||
return true ;
|
||||
}
|
||||
case POCKET_LO_GLIDE :
|
||||
@@ -3779,7 +3780,8 @@ Pocketing::AddLeadOut( const Point3d& ptEnd, const Vector3d& vtEnd, const Vector
|
||||
if ( GetElevation( m_nPhase, ptP1 - 10 * EPS_SMALL * vtN, vtN, GetRadiusForStartEndElevation(), vtN, dEndElev))
|
||||
dElev = dEndElev ;
|
||||
// correzione per punto sotto il grezzo con testa normale da sopra
|
||||
bool bUnderEnd = m_bAboveHead && ! m_bAggrBottom && GetPointUnderRaw( ptP1, vtN, GetRadiusForStartEndElevation(), m_TParams.m_dLen, dElev) ;
|
||||
double dSafeZ = m_pMchMgr->GetCurrMachiningsMgr()->GetSafeZ() ;
|
||||
bool bUnderEnd = m_bAboveHead && ! m_bAggrBottom && GetPointUnderRaw( ptP1, vtN, GetRadiusForStartEndElevation(), m_TParams.m_dLen, false, dSafeZ, dElev) ;
|
||||
return true ;
|
||||
}
|
||||
default :
|
||||
|
||||
Reference in New Issue
Block a user