diff --git a/libsrc/occ/python_occ.cpp b/libsrc/occ/python_occ.cpp index c660f03a..a797e51d 100644 --- a/libsrc/occ/python_occ.cpp +++ b/libsrc/occ/python_occ.cpp @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -659,6 +660,10 @@ DLL_HEADER void ExportNgOCC(py::module &m) return BRepPrimAPI_MakePrism (face, vec).Shape(); }); + m.def("Pipe", [] (const TopoDS_Wire & spine, const TopoDS_Shape & profile) { + return BRepOffsetAPI_MakePipe (spine, profile).Shape(); + }, py::arg("spine"), py::arg("profile")); + // Handle(Geom2d_Ellipse) anEllipse1 = new Geom2d_Ellipse(anAx2d, aMajor, aMinor); m.def("Ellipse", [] (const gp_Ax2d & ax, double major, double minor) -> Handle(Geom2d_Curve) {