mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-24 22:32:03 +05:00
Improve closed shells shecking.
This commit is contained in:
parent
fe08cb5e34
commit
c3c821953a
@ -48,8 +48,9 @@
|
|||||||
#include <BRepAdaptor_Surface.hxx>
|
#include <BRepAdaptor_Surface.hxx>
|
||||||
#include <BRepBndLib.hxx>
|
#include <BRepBndLib.hxx>
|
||||||
#include <BRepCheck.hxx>
|
#include <BRepCheck.hxx>
|
||||||
#include <BRepCheck_Result.hxx>
|
|
||||||
#include <BRepCheck_ListIteratorOfListOfStatus.hxx>
|
#include <BRepCheck_ListIteratorOfListOfStatus.hxx>
|
||||||
|
#include <BRepCheck_Result.hxx>
|
||||||
|
#include <BRepCheck_Shell.hxx>
|
||||||
#include <BRepExtrema_DistShapeShape.hxx>
|
#include <BRepExtrema_DistShapeShape.hxx>
|
||||||
#include <BRepGProp.hxx>
|
#include <BRepGProp.hxx>
|
||||||
#include <BRepTools.hxx>
|
#include <BRepTools.hxx>
|
||||||
@ -1337,7 +1338,8 @@ TCollection_AsciiString GEOMImpl_IMeasureOperations::IsGoodForSolid (Handle(GEOM
|
|||||||
if (It.More()) aShape = It.Value();
|
if (It.More()) aShape = It.Value();
|
||||||
}
|
}
|
||||||
if (aShape.ShapeType() == TopAbs_SHELL) {
|
if (aShape.ShapeType() == TopAbs_SHELL) {
|
||||||
if (!aShape.Closed()) {
|
BRepCheck_Shell chkShell (TopoDS::Shell(aShape));
|
||||||
|
if (chkShell.Closed() == BRepCheck_NotClosed) {
|
||||||
aRes = "WRN_SHAPE_UNCLOSED";
|
aRes = "WRN_SHAPE_UNCLOSED";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user