]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1179, first part
authormpv <mpv@opencascade.com>
Fri, 25 Dec 2015 07:32:57 +0000 (10:32 +0300)
committermpv <mpv@opencascade.com>
Fri, 25 Dec 2015 07:32:57 +0000 (10:32 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_EdgeBuilder.cpp

index 3c177a1787e65cce0425633c6ba3540bf2cf2c2e..26e90ab957e8a8950e182b1a509d00e8247a115d 100644 (file)
@@ -140,8 +140,7 @@ std::shared_ptr<GeomAPI_Edge> GeomAlgoAPI_EdgeBuilder::lineCircleArc(
   const gp_Pnt& anEnd = theEndPoint->impl<gp_Pnt>();
 
   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);