]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Improve closed shells shecking.
authorjfa <jfa@opencascade.com>
Wed, 4 May 2011 12:42:57 +0000 (12:42 +0000)
committerjfa <jfa@opencascade.com>
Wed, 4 May 2011 12:42:57 +0000 (12:42 +0000)
src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx

index 16d58527ec6bc87a7daef92eb6c69aa6c256eb62..c75446efff4331796cb4a9a1d7a21d34986751fe 100644 (file)
@@ -48,8 +48,9 @@
 #include <BRepAdaptor_Surface.hxx>
 #include <BRepBndLib.hxx>
 #include <BRepCheck.hxx>
-#include <BRepCheck_Result.hxx>
 #include <BRepCheck_ListIteratorOfListOfStatus.hxx>
+#include <BRepCheck_Result.hxx>
+#include <BRepCheck_Shell.hxx>
 #include <BRepExtrema_DistShapeShape.hxx>
 #include <BRepGProp.hxx>
 #include <BRepTools.hxx>
@@ -1337,7 +1338,8 @@ TCollection_AsciiString GEOMImpl_IMeasureOperations::IsGoodForSolid (Handle(GEOM
           if (It.More()) aShape = It.Value();
         }
         if (aShape.ShapeType() == TopAbs_SHELL) {
-          if (!aShape.Closed()) {
+          BRepCheck_Shell chkShell (TopoDS::Shell(aShape));
+          if (chkShell.Closed() == BRepCheck_NotClosed) {
             aRes = "WRN_SHAPE_UNCLOSED";
           }
         }