X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFiltersPlugin%2FFiltersPlugin_HorizontalFace.cpp;h=ce1ec8b3f090779e97a7bca2786afcb0a34d1ecb;hb=09365c927ebe8d881de2eda7f96bc33a2d9511c8;hp=c602e421e7e872ce5964b620c561eb78ecf73d6b;hpb=33d191c57ab22ff6e84ea27e69537670d242d336;p=modules%2Fshaper.git diff --git a/src/FiltersPlugin/FiltersPlugin_HorizontalFace.cpp b/src/FiltersPlugin/FiltersPlugin_HorizontalFace.cpp index c602e421e..ce1ec8b3f 100644 --- a/src/FiltersPlugin/FiltersPlugin_HorizontalFace.cpp +++ b/src/FiltersPlugin/FiltersPlugin_HorizontalFace.cpp @@ -27,10 +27,10 @@ bool FiltersPlugin_HorizontalFace::isSupported(GeomAPI_Shape::ShapeType theType) return theType == GeomAPI_Shape::FACE; } -bool FiltersPlugin_HorizontalFace::isOk( - const GeomShapePtr& theShape, const ModelAPI_FiltersArgs& theArgs) const +bool FiltersPlugin_HorizontalFace::isOk(const GeomShapePtr& theShape, const ResultPtr&, + const ModelAPI_FiltersArgs& theArgs) const { - if (!theShape->isPlanar()) + if (!theShape->isFace() || !theShape->isPlanar()) return false; GeomFacePtr aFace(new GeomAPI_Face(theShape));