From: mpv Date: Fri, 25 Dec 2015 07:32:57 +0000 (+0300) Subject: Fix for the issue #1179, first part X-Git-Tag: V_2.1.0~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=55bbe180b3c2cd88858e86a1f59c278ed466774f;p=modules%2Fshaper.git Fix for the issue #1179, first part --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.cpp index 3c177a178..26e90ab95 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.cpp @@ -140,8 +140,7 @@ std::shared_ptr GeomAlgoAPI_EdgeBuilder::lineCircleArc( const gp_Pnt& anEnd = theEndPoint->impl(); BRepBuilderAPI_MakeEdge anEdgeBuilder; - if (aStart.IsEqual(anEnd, Precision::Confusion()) - || gp_Pnt(0, 0, 0).IsEqual(anEnd, Precision::Confusion())) + if (aStart.IsEqual(anEnd, Precision::Confusion())) anEdgeBuilder = BRepBuilderAPI_MakeEdge(aCircle); else anEdgeBuilder = BRepBuilderAPI_MakeEdge(aCircle, aStart, anEnd);