From: jfa Date: Wed, 4 May 2011 12:42:57 +0000 (+0000) Subject: Improve closed shells shecking. X-Git-Tag: V6_3_0b1~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c3c821953a976d9f0093f07786f4b77ab20989f2;p=modules%2Fgeom.git Improve closed shells shecking. --- diff --git a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx index 16d58527e..c75446eff 100644 --- a/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx +++ b/src/GEOMImpl/GEOMImpl_IMeasureOperations.cxx @@ -48,8 +48,9 @@ #include #include #include -#include #include +#include +#include #include #include #include @@ -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"; } }