mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-25 18:15:37 +05:00
INT PAL 0052636: Make solid from compound of shells works incorrectly
This commit is contained in:
parent
b3d03ada99
commit
76ecb7ccef
@ -426,9 +426,18 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
|
||||
}
|
||||
if (aShapeShell.ShapeType() == TopAbs_COMPOUND) {
|
||||
TopoDS_Iterator It (aShapeShell, Standard_True, Standard_True);
|
||||
if (It.More()) aShapeShell = It.Value();
|
||||
for (; It.More(); It.Next()) {
|
||||
TopoDS_Shape aSubShape = It.Value();
|
||||
if (aSubShape.ShapeType() == TopAbs_SHELL) {
|
||||
aMkSolid.Add(TopoDS::Shell(aSubShape));
|
||||
ish++;
|
||||
}
|
||||
else
|
||||
Standard_TypeMismatch::Raise
|
||||
("Shape for solid construction is neither a shell nor a compound of shells");
|
||||
}
|
||||
}
|
||||
if (aShapeShell.ShapeType() == TopAbs_SHELL) {
|
||||
else if (aShapeShell.ShapeType() == TopAbs_SHELL) {
|
||||
aMkSolid.Add(TopoDS::Shell(aShapeShell));
|
||||
ish++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user