EgtMachKernel :
- modifiche e correzioni per flag di fine passata (301) in fresatura con lama a ZigZag e OneWay.
This commit is contained in:
+8
-3
@@ -4019,12 +4019,14 @@ Milling::AddSawZigZagMilling( const ICurveComposite* pCompo, const Vector3d& vtT
|
||||
// aggiungo uscita
|
||||
Point3d ptP1 ;
|
||||
Vector3d vtDir1 ;
|
||||
SetFlag( 301, false) ;
|
||||
SetFeed( GetEndFeed()) ;
|
||||
if ( ! AddLeadOut( ptEnd, vtEnd, vtTool, dEndElev, bInvert, pMyCompo, bSplitArcs, ptP1, vtDir1)) {
|
||||
m_pMchMgr->SetLastError( 2311, "Error in Milling : LeadOut not computable") ;
|
||||
return false ;
|
||||
}
|
||||
// imposto flag fine passata sull'ultima entità emessa
|
||||
if ( ! SetFlagOnLastMove( 301))
|
||||
return false ;
|
||||
// per lame retrazione non è necessaria
|
||||
}
|
||||
}
|
||||
@@ -4212,12 +4214,15 @@ Milling::AddSawOneWayMilling( const ICurveComposite* pCompo, const Vector3d& vtT
|
||||
Point3d ptP1 ;
|
||||
Vector3d vtDir1 ;
|
||||
SetFeed( GetEndFeed()) ;
|
||||
if ( ! bReturn)
|
||||
SetFlag( 301, false) ;
|
||||
if ( ! AddLeadOut( ptEnd, vtEnd, vtTool, dEndElev, bReturn, pMyCompo, bSplitArcs, ptP1, vtDir1)) {
|
||||
m_pMchMgr->SetLastError( 2311, "Error in Milling : LeadOut not computable") ;
|
||||
return false ;
|
||||
}
|
||||
// se non è return, imposto flag fine passata sull'ultima entità emessa
|
||||
if ( ! bReturn) {
|
||||
if ( ! SetFlagOnLastMove( 301))
|
||||
return false ;
|
||||
}
|
||||
// per lame retrazione non è necessaria
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user