1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

#return back to original patch by denix56

This commit is contained in:
msv
2018-08-08 12:15:08 +03:00
parent 765283765b
commit c1a495689d

View File

@@ -327,6 +327,8 @@ void GCPnts_TangentialDeflection::PerformCurve (const TheCurve& C)
}
Standard_Real delta = (Intervs(i+1) - Intervs(i))/(NbPoints-1);
gp_Pnt prevMiddlePoint = CurrentPoint;
for (j = 1; j < NbPoints && IsLine; ++j)
{
param = Intervs(i) + j*delta;
@@ -341,9 +343,12 @@ void GCPnts_TangentialDeflection::PerformCurve (const TheCurve& C)
// Check if points on line are subsequent
if(IsLine && IsSequential)
{
IsSequential = (L2 <= L1);
gp_XYZ V3 = MiddlePoint.XYZ() - prevMiddlePoint.XYZ();
Standard_Real L3 = V3.Modulus();
IsSequential = (L3 <= L1);
}
}
prevMiddlePoint = MiddlePoint;
}
}