EgtMachKernel :
- in svuotature con utensili che non possono lavorare di testa aggiunto controllo che effettivamente gli ingressi siano fatti a spirale o zigzag - aggiunti controlli su Set di Frame3d con due versori per verificare non siano allineati.
This commit is contained in:
+2
-2
@@ -287,12 +287,12 @@ Machining::ToolPreview( int nEntId, int nFlag) const
|
||||
Frame3d frHead ;
|
||||
m_pGeomDB->GetGroupGlobFrame( nId, frHead) ;
|
||||
Frame3d frRef ;
|
||||
if ( vtAux.IsSmall())
|
||||
if ( vtAux.IsSmall() || AreSameOrOppositeVectorApprox( vtAux, vtDir))
|
||||
frRef.Set( ptOrig, vtDir) ;
|
||||
else
|
||||
frRef.Set( ptOrig, vtDir, vtAux) ;
|
||||
Frame3d frShow ;
|
||||
if ( vtBAux.IsSmall())
|
||||
if ( vtBAux.IsSmall() || AreSameOrOppositeVectorApprox( vtBAux, vtTool))
|
||||
frShow.Set( ptEnd + vtTool * GetToolData().m_dLen, vtTool) ;
|
||||
else
|
||||
frShow.Set( ptEnd + vtTool * GetToolData().m_dLen, vtTool, vtBAux) ;
|
||||
|
||||
+4
-1
@@ -5269,8 +5269,11 @@ Pocketing::AddLeadIn( const Point3d& ptP1, const Point3d& ptStart, const Vector3
|
||||
return ( AddLinearMove( ptStart, MCH_CL_LEADIN) != GDB_ID_NULL) ;
|
||||
}
|
||||
// altrimenti diretto
|
||||
else
|
||||
else {
|
||||
nType = POCKET_LI_NONE ;
|
||||
if ( m_TParams.m_nType == TT_MILL_NOTIP)
|
||||
return false ;
|
||||
}
|
||||
}
|
||||
// Se a scivolo e fattibile
|
||||
if ( nType == POCKET_LI_GLIDE) {
|
||||
|
||||
Reference in New Issue
Block a user