From 400a4d719dd378f4ff30f668f5f1813a54b6cae3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 10 Dec 2011 10:45:18 +0000 Subject: [PATCH] + 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 --- src/Mod/Part/App/TopoShapeShellPyImp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Part/App/TopoShapeShellPyImp.cpp b/src/Mod/Part/App/TopoShapeShellPyImp.cpp index 6e50229cc..e50d82ada 100644 --- a/src/Mod/Part/App/TopoShapeShellPyImp.cpp +++ b/src/Mod/Part/App/TopoShapeShellPyImp.cpp @@ -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();