From 299717de55e09b5da08e2964bc984d3a2eaba197 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Mon, 6 Dec 2021 09:11:46 +0100 Subject: [PATCH] copy=true in occ fuctions --- libsrc/occ/python_occ_shapes.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index b6b68eb1..e52d270b 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -1010,7 +1010,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) // for (TopExp_Explorer e(shape, TopAbs_FACE); e.More(); e.Next()) { // return BRepPrimAPI_MakeRevol (shape, A, D*M_PI/180).Shape(); - BRepPrimAPI_MakeRevol builder(shape, A, D*M_PI/180); + BRepPrimAPI_MakeRevol builder(shape, A, D*M_PI/180, true); for (auto typ : { TopAbs_EDGE, TopAbs_VERTEX }) for (TopExp_Explorer e(shape, typ); e.More(); e.Next()) @@ -1726,13 +1726,13 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) "create box with opposite points 'p1' and 'p2'"); m.def("Prism", [] (const TopoDS_Shape & face, gp_Vec vec) { - return BRepPrimAPI_MakePrism (face, vec).Shape(); + return BRepPrimAPI_MakePrism (face, vec, true).Shape(); }, py::arg("face"), py::arg("v"), "extrude face along the vector 'v'"); m.def("Revolve", [] (const TopoDS_Shape & face,const gp_Ax1 &A, const double D) { - //comvert angle from deg to rad - return BRepPrimAPI_MakeRevol (face, A, D*M_PI/180).Shape(); + //convert angle from deg to rad + return BRepPrimAPI_MakeRevol (face, A, D*M_PI/180, true).Shape(); }); m.def("Pipe", [] (const TopoDS_Wire & spine, const TopoDS_Shape & profile,