From: gka Date: Wed, 25 Apr 2018 16:42:27 +0000 (+0300) Subject: Additional fix for 29713 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR29713;p=occt-copy.git Additional fix for 29713 --- diff --git a/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx b/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx index 0ae7794bd4..5342e2a924 100644 --- a/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx +++ b/src/ShapeAnalysis/ShapeAnalysis_Edge.cxx @@ -438,7 +438,7 @@ Standard_Boolean ShapeAnalysis_Edge::CheckCurve3dWithPCurve (const TopoDS_Edge& TopoDS_Vertex aFirstVert = FirstVertex (edge); TopoDS_Vertex aLastVert = LastVertex (edge); - if (aFirstVert.IsNull() || aLastVert.IsNull()) + if (aFirstVert.IsNull() || aLastVert.IsNull() || aFirstVert.IsSame(aLastVert)) return Standard_False; Standard_Real preci1 = BRep_Tool::Tolerance (aFirstVert),