From: knosulko Date: Mon, 30 Aug 2021 14:45:46 +0000 (+0300) Subject: 30046: Modeling Algorithms - Cannot find necessary projection of the curve X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=763544df3d8f79d6a0a7cb3ff409b1519cf74c74;p=occt-copy.git 30046: Modeling Algorithms - Cannot find necessary projection of the curve Skip projection points that do not suit the maximum curve distance condition --- 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);