X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_PlanarEdges.cpp;h=dbc6e498a943ce533a23e5010d39558a3fcd3a19;hb=b06cf1477fb1ee46d7ae260c234cac5d0000abf2;hp=fa4686de7e8797971b1d0ffc20520d9fdad9c978;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_PlanarEdges.cpp b/src/GeomAPI/GeomAPI_PlanarEdges.cpp index fa4686de7..dbc6e498a 100644 --- a/src/GeomAPI/GeomAPI_PlanarEdges.cpp +++ b/src/GeomAPI/GeomAPI_PlanarEdges.cpp @@ -122,6 +122,8 @@ bool GeomAPI_PlanarEdges::isEqual(const std::shared_ptr theShape) return false; TopoDS_Shape& aMyShape = const_cast(impl()); TopoDS_Shape aTheShape = theShape->impl(); + if (aMyShape.ShapeType() != aTheShape.ShapeType()) // to don't confuse by the face of same edges + return false; TopExp_Explorer aMyExp(aMyShape, TopAbs_EDGE); TopExp_Explorer aTheExp(aTheShape, TopAbs_EDGE); for (; aMyExp.More() && aTheExp.More(); aMyExp.Next(), aTheExp.Next()) {