From: dpasukhi Date: Tue, 28 Jan 2025 12:21:26 +0000 (+0000) Subject: Modeling - Enhance intersection handling for closed curves in IntPatch_Intersection... X-Git-Tag: V7_9_0_beta1~31 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=8caf5157dd4919effd2c401edbf463ceb5ca1b6e;p=occt.git Modeling - Enhance intersection handling for closed curves in IntPatch_Intersection #298 --- diff --git a/src/IntPatch/IntPatch_Intersection.cxx b/src/IntPatch/IntPatch_Intersection.cxx index 4bf83fd567..79ec38baf2 100644 --- a/src/IntPatch/IntPatch_Intersection.cxx +++ b/src/IntPatch/IntPatch_Intersection.cxx @@ -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: {