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) ;
|
||||
|
||||
Reference in New Issue
Block a user