]> OCCT Git - occt-copy.git/commitdiff
30046: Modeling Algorithms - Cannot find necessary projection of the curve CR30046
authorknosulko <knosulko@opencascade.com>
Mon, 30 Aug 2021 14:45:46 +0000 (17:45 +0300)
committerknosulko <knosulko@opencascade.com>
Tue, 31 Aug 2021 07:51:12 +0000 (10:51 +0300)
Skip projection points that do not suit the maximum curve distance condition

src/ProjLib/ProjLib_CompProjectedCurve.cxx

index b69bd8f243c32333d7ebb673403ebb6b8b4ad620..86bf06e0ad5f9e7496f776517dbf4884d827b85f 100644 (file)
@@ -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);