diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index 62c8f387..02a97d9a 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -1671,8 +1672,14 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) py::implicitly_convertible(); py::implicitly_convertible(); - + m.def("MakePolygon", [](std::vector verts) + { + BRepBuilderAPI_MakePolygon builder; + for(auto& v : verts) + builder.Add(v); + return builder.Wire(); + }); class ListOfShapesIterator {