mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-04-15 21:21:22 +05:00
Mantis issue 0021809: [CEA 628] Impossible to create a solid from a shell created with MakeShell.
This commit is contained in:
parent
a574e40770
commit
880391e583
@ -18,7 +18,6 @@
|
|||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
//
|
//
|
||||||
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
//
|
|
||||||
|
|
||||||
#include <GEOMImpl_ShapeDriver.hxx>
|
#include <GEOMImpl_ShapeDriver.hxx>
|
||||||
|
|
||||||
@ -362,6 +361,7 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
|
|||||||
aSewing.Perform();
|
aSewing.Perform();
|
||||||
|
|
||||||
TopoDS_Shape sh = aSewing.SewedShape();
|
TopoDS_Shape sh = aSewing.SewedShape();
|
||||||
|
|
||||||
if (sh.ShapeType()==TopAbs_FACE && nbshapes==1) {
|
if (sh.ShapeType()==TopAbs_FACE && nbshapes==1) {
|
||||||
// case for creation of shell from one face - PAL12722 (skl 26.06.2006)
|
// case for creation of shell from one face - PAL12722 (skl 26.06.2006)
|
||||||
TopoDS_Shell ss;
|
TopoDS_Shell ss;
|
||||||
@ -378,9 +378,26 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(TFunction_Logbook& log) const
|
|||||||
ish++;
|
ish++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ish != 1)
|
if (ish != 1) {
|
||||||
|
// try the case of one face (Mantis issue 0021809)
|
||||||
|
TopExp_Explorer expF (sh, TopAbs_FACE);
|
||||||
|
Standard_Integer ifa = 0;
|
||||||
|
for (; expF.More(); expF.Next()) {
|
||||||
|
aShape = expF.Current();
|
||||||
|
ifa++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ifa == 1) {
|
||||||
|
TopoDS_Shell ss;
|
||||||
|
B.MakeShell(ss);
|
||||||
|
B.Add(ss,aShape);
|
||||||
|
aShape = ss;
|
||||||
|
}
|
||||||
|
else {
|
||||||
aShape = aSewing.SewedShape();
|
aShape = aSewing.SewedShape();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (aType == SOLID_SHELL) {
|
else if (aType == SOLID_SHELL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user