]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAlgoAPI/GeomAlgoAPI_FaceBuilder.cpp
Salome HOME
Make selection naming works wit hsketch faces (added sub-edges in naming structure)
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_FaceBuilder.cpp
index 3c9a61fda4fdd8a23a07ce7f073ddffb7768bb01..85df8286aa5288e9ee402ec670fa6260c7934b53 100644 (file)
@@ -34,6 +34,8 @@ boost::shared_ptr<GeomAPI_Pln> GeomAlgoAPI_FaceBuilder::plane(
   TopoDS_Shape aShape = theFace->impl<TopoDS_Shape>();
   if (aShape.IsNull())
     return aResult;  // null shape
+  if (aShape.ShapeType() != TopAbs_FACE)
+    return aResult;  // not face
   TopoDS_Face aFace = TopoDS::Face(aShape);
   if (aFace.IsNull())
     return aResult;  // not face