Improve closed shells shecking.

This commit is contained in:
jfa 2011-05-04 12:42:57 +00:00
parent fe08cb5e34
commit c3c821953a

View 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";
}
}