]> OCCT Git - occt.git/commitdiff
Modeling - Enhance intersection handling for closed curves in IntPatch_Intersection...
authordpasukhi <dpasukhi@opencascade.com>
Tue, 28 Jan 2025 12:21:26 +0000 (12:21 +0000)
committerdpasukhi <dpasukhi@opencascade.com>
Tue, 28 Jan 2025 12:21:26 +0000 (12:21 +0000)
src/IntPatch/IntPatch_Intersection.cxx

index 4bf83fd567bbe799950e2381a8fa90620d2c98b5..79ec38baf236bfea6489ad3b979b858a1a6a833f 100644 (file)
@@ -195,8 +195,11 @@ void IntPatch_Intersection::Perform(const Handle(Adaptor3d_Surface)&   S1,
                              aProjectedCurve.FirstParameter(),
                              aProjectedCurve.LastParameter());
       Geom2dInt_GInter    Intersector(AC, Precision::Confusion(), Precision::Confusion());
-      if (Intersector.IsDone() && Intersector.IsEmpty())
+      if (Intersector.IsDone()
+          && (Intersector.IsEmpty() || (AC.IsClosed() && Intersector.NbPoints() == 1)))
+      {
         break;
+      }
     }
       Standard_FALLTHROUGH
     default: {