+ 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:
parent
b75385abd8
commit
400a4d719d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user