mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
[occ] create ListOfShape from list of shapes
This commit is contained in:
parent
8f33f4fed8
commit
03e21d5c5f
@ -1544,6 +1544,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
|
||||
};
|
||||
|
||||
py::class_<ListOfShapes> (m, "ListOfShapes")
|
||||
.def(py::init<vector<TopoDS_Shape>())
|
||||
.def("__iter__", [](ListOfShapes &s) {
|
||||
return py::make_iterator(ListOfShapesIterator(&*s.begin()),
|
||||
ListOfShapesIterator(&*s.end()));
|
||||
|
Loading…
Reference in New Issue
Block a user