From 763544df3d8f79d6a0a7cb3ff409b1519cf74c74 Mon Sep 17 00:00:00 2001 From: knosulko Date: Mon, 30 Aug 2021 17:45:46 +0300 Subject: [PATCH] 30046: Modeling Algorithms - Cannot find necessary projection of the curve Skip projection points that do not suit the maximum curve distance condition --- src/ProjLib/ProjLib_CompProjectedCurve.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ProjLib/ProjLib_CompProjectedCurve.cxx b/src/ProjLib/ProjLib_CompProjectedCurve.cxx index b69bd8f243..86bf06e0ad 100644 --- a/src/ProjLib/ProjLib_CompProjectedCurve.cxx +++ b/src/ProjLib/ProjLib_CompProjectedCurve.cxx @@ -804,9 +804,14 @@ void ProjLib_CompProjectedCurve::Init() d = CPoint.Distance(POnS); if (d > myMaxDist) { - mySequence->Clear(); - myNbCurves = 0; - return; + if (t == LastU) break; + t += Step; + if (t > LastU) + { + Step = Step + LastU - t; + t = LastU; + } + continue; } } Triple = gp_Pnt(t, U, V); -- 2.39.5