From 5a5d46af4bd24b6178e4febff897553f0ce7c9ae Mon Sep 17 00:00:00 2001 From: ika Date: Thu, 8 Jun 2023 16:52:12 +0100 Subject: [PATCH] SIE01-2: ForanAlgo_ProjectWire (720) - Does not obtain a result --- src/IntPatch/IntPatch_WLineTool.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/IntPatch/IntPatch_WLineTool.cxx b/src/IntPatch/IntPatch_WLineTool.cxx index bea98f404e..79f9c5f2a0 100644 --- a/src/IntPatch/IntPatch_WLineTool.cxx +++ b/src/IntPatch/IntPatch_WLineTool.cxx @@ -1507,6 +1507,9 @@ void IntPatch_WLineTool::JoinWLines(IntPatch_SequenceOfLine& theSlin, const Standard_Integer aNbPntsWL2 = aWLine2->NbPnts(); + if (aNbPntsWL1 < 2 || aNbPntsWL2 < 2) + continue; + const IntSurf_PntOn2S& aPntFWL2 = aWLine2->Point(1); const IntSurf_PntOn2S& aPntLWL2 = aWLine2->Point(aNbPntsWL2);