From 1fe84ea1b6d94c7b691679608caed5d5940fa364 Mon Sep 17 00:00:00 2001 From: nds Date: Mon, 10 Apr 2017 12:33:11 +0300 Subject: [PATCH] Issue #2116 Crash when Splitting a circle crossing external segments --- src/GeomAlgoAPI/GeomAlgoAPI_ShapeTools.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.39.2