+ make try/catch block around sortEdges

+ set shape immutable when getting from feature
+ no use of tuples in removeShape

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5402 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer
2012-01-12 14:04:19 +00:00
parent 5c23a97737
commit 050a7316ef
3 changed files with 46 additions and 34 deletions

View File

@@ -208,8 +208,7 @@ PyObject* TopoShapePy::removeShape(PyObject *args)
Py::List list(l);
std::vector<TopoDS_Shape> shapes;
for (Py::List::iterator it = list.begin(); it != list.end(); ++it) {
Py::Tuple tuple(*it);
Py::TopoShape sh(tuple[0]);
Py::TopoShape sh(*it);
shapes.push_back(
sh.extensionObject()->getTopoShapePtr()->_Shape
);