From: drazmyslovich Date: Wed, 7 Aug 2019 12:10:32 +0000 (+0300) Subject: 0030874: Modeling Algorithms - GCPnts_TangentialDeflection inserts the points between... X-Git-Tag: V7_4_0_beta~47 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=846245d4b2c92534dea815a7bb4903bb9ac7ccee;p=occt-copy.git 0030874: Modeling Algorithms - GCPnts_TangentialDeflection inserts the points between nearby points Check the points distance before inserting a new point in between. --- 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.;