+ check shape type after shell construction

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5247 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-12-10 10:45:18 +00:00
parent b75385abd8
commit 400a4d719d

View File

@ -99,6 +99,9 @@ int TopoShapeShellPy::PyInit(PyObject* args, PyObject* /*kwd*/)
ShapeUpgrade_ShellSewing sewShell;
shape = sewShell.ApplySewing(shell);
}
if (shape.ShapeType() != TopAbs_SHELL)
Standard_Failure::Raise("Shape is not a shell");
}
catch (Standard_Failure) {
Handle_Standard_Failure e = Standard_Failure::Caught();