Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b4fbc
)
Fix of creation of sketch-distance to external sketch elements: first to a vertex...
author
mpv
<mikhail.ponikarov@opencascade.com>
Tue, 23 Dec 2014 14:29:48 +0000
(17:29 +0300)
committer
mpv
<mikhail.ponikarov@opencascade.com>
Tue, 23 Dec 2014 14:29:48 +0000
(17:29 +0300)
src/GeomAPI/GeomAPI_Edge.cpp
patch
|
blob
|
history
diff --git
a/src/GeomAPI/GeomAPI_Edge.cpp
b/src/GeomAPI/GeomAPI_Edge.cpp
index d2d0248f29a880bccb33505b4145ed5cabc1c25d..06c733f3baa888eb9662eedf0fc27baa2cc549be 100644
(file)
--- a/
src/GeomAPI/GeomAPI_Edge.cpp
+++ b/
src/GeomAPI/GeomAPI_Edge.cpp
@@
-104,7
+104,10
@@
bool GeomAPI_Edge::isEqual(std::shared_ptr<GeomAPI_Shape> theEdge)
{
const TopoDS_Shape& aMyShape = const_cast<GeomAPI_Edge*>(this)->impl<TopoDS_Shape>();
const TopoDS_Shape& aInShape = theEdge->impl<TopoDS_Shape>();
-
+
+ if (aMyShape.ShapeType() != aInShape.ShapeType())
+ return false;
+
double aMyStart, aMyEnd;
Handle(Geom_Curve) aMyCurve = BRep_Tool::Curve(TopoDS::Edge(aMyShape), aMyStart, aMyEnd);
double aInStart, aInEnd;