From 3dcba13efc3dafc712b4e16d420a79b54575c1dc Mon Sep 17 00:00:00 2001 From: Riccardo Elitropi Date: Mon, 5 Jun 2023 08:36:59 +0200 Subject: [PATCH] EgtMachKernel : - merge con master. --- Pocketing.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Pocketing.cpp b/Pocketing.cpp index 71dbe09..eab7d75 100644 --- a/Pocketing.cpp +++ b/Pocketing.cpp @@ -7812,8 +7812,7 @@ Pocketing::ComputeTrapezoidSpiralLeadInLeadOut( ICurveComposite* pCompo, const V double dDistRef = dDist ; double dDistMin ; Vector3d vtNormMin ; - //if ( CalcDistanceFromRawSurface( m_nPhase, ptP, vtNorm, dDistMin, vtNormMin)) { - if ( GetSignedDistFromStmRaw( m_nPhase, ptP, vtDir, dDistMin, vtNorm)) { + if ( abs( vtTool * vtNorm) < 0.5 && GetSignedDistFromStmRaw( m_nPhase, ptP, vtDir, dDistMin, vtNorm)) { if ( abs( dDistMin) < abs( dDist) && abs( dDistMin) > EPS_SMALL) { dDistRef = dDistMin ; dCorr = dDist / dDistMin ;