From: mpv Date: Tue, 23 Dec 2014 14:26:29 +0000 (+0300) Subject: Fix of creation of sketch-distance to external sketch elements: first to an edge... X-Git-Tag: V_0.7.0_rc1~55^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=43b4fbcf272a8d73b7d12e129f441ba78e57c64f;p=modules%2Fshaper.git Fix of creation of sketch-distance to external sketch elements: first to an edge, then to a vertex --- diff --git a/src/GeomAPI/GeomAPI_Vertex.cpp b/src/GeomAPI/GeomAPI_Vertex.cpp index 4c5190871..3c9e0a0b2 100644 --- a/src/GeomAPI/GeomAPI_Vertex.cpp +++ b/src/GeomAPI/GeomAPI_Vertex.cpp @@ -40,6 +40,9 @@ bool GeomAPI_Vertex::isEqual(std::shared_ptr theVert) const TopoDS_Shape& aMyShape = const_cast(this)->impl(); const TopoDS_Shape& aInShape = theVert->impl(); + if (aMyShape.ShapeType() != aInShape.ShapeType()) + return false; + TopoDS_Vertex aVertex1 = TopoDS::Vertex(aMyShape); gp_Pnt aPoint1 = BRep_Tool::Pnt(aVertex1);