]> OCCT Git - occt.git/commitdiff
SIE01-2: ForanAlgo_ProjectWire (720) - Does not obtain a result
authorika <ika@opencascade.com>
Thu, 8 Jun 2023 15:52:12 +0000 (16:52 +0100)
committerika <ika@opencascade.com>
Thu, 8 Jun 2023 15:52:12 +0000 (16:52 +0100)
src/IntPatch/IntPatch_WLineTool.cxx

index bea98f404e08b8fcfd81a285979978ebd8e20481..79f9c5f2a0bdc48eb523e6e8f0b9da70269d768d 100644 (file)
@@ -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);