From 03e21d5c5f08beece02a877b45b378a7c73aa7f2 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 8 Jun 2022 20:52:51 +0200 Subject: [PATCH] [occ] create ListOfShape from list of shapes --- libsrc/occ/python_occ_shapes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index f29d4c61..8127579b 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -1544,6 +1544,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) }; py::class_ (m, "ListOfShapes") + .def(py::init()) .def("__iter__", [](ListOfShapes &s) { return py::make_iterator(ListOfShapesIterator(&*s.begin()), ListOfShapesIterator(&*s.end()));