From 43b4fbcf272a8d73b7d12e129f441ba78e57c64f Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 23 Dec 2014 17:26:29 +0300 Subject: [PATCH] Fix of creation of sketch-distance to external sketch elements: first to an edge, then to a vertex --- src/GeomAPI/GeomAPI_Vertex.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.2