From: nds Date: Mon, 10 Apr 2017 09:33:11 +0000 (+0300) Subject: Issue #2116 Crash when Splitting a circle crossing external segments X-Git-Tag: V_2.7.0~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1fe84ea1b6d94c7b691679608caed5d5940fa364;p=modules%2Fshaper.git Issue #2116 Crash when Splitting a circle crossing external segments --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp index 1df2c7f87..e1a47c77c 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp @@ -698,7 +698,11 @@ void GeomAlgoAPI_ShapeTools::splitShape(const std::shared_ptr& th const GeomAlgoAPI_ShapeTools::PointToRefsMap& thePointsInfo, std::set >& theShapes) { - // General Fuse to split edge by vertices + // to split shape at least one point should be presented in the points container + if (thePointsInfo.empty()) + return; + + // General Fuse to split edge by vertices BOPAlgo_Builder aBOP; TopoDS_Edge aBaseEdge = theBaseShape->impl(); // Rebuild closed edge to place vertex to one of split points.