From 846245d4b2c92534dea815a7bb4903bb9ac7ccee Mon Sep 17 00:00:00 2001 From: drazmyslovich Date: Wed, 7 Aug 2019 15:10:32 +0300 Subject: [PATCH] 0030874: Modeling Algorithms - GCPnts_TangentialDeflection inserts the points between nearby points Check the points distance before inserting a new point in between. --- src/GCPnts/GCPnts_TangentialDeflection.pxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/GCPnts/GCPnts_TangentialDeflection.pxx b/src/GCPnts/GCPnts_TangentialDeflection.pxx index 068e80bac3..c32e4a0808 100644 --- a/src/GCPnts/GCPnts_TangentialDeflection.pxx +++ b/src/GCPnts/GCPnts_TangentialDeflection.pxx @@ -593,6 +593,12 @@ void GCPnts_TangentialDeflection::PerformCurve (const TheCurve& C) { U1 = parameters(i); U2 = parameters(i + 1); + + if (U2 - U1 <= uTol) + { + continue; + } + // Check maximal deflection on interval; Standard_Real dmax = 0.; Standard_Real umax = 0.; -- 2.39.5