From 92ade9d800b6a208ec5df3292b437113e5100e72 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Tue, 30 Nov 2021 20:42:59 +0100 Subject: [PATCH] copy faces in occ transformations --- libsrc/occ/python_occ_basic.cpp | 2 +- libsrc/occ/python_occ_shapes.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/occ/python_occ_basic.cpp b/libsrc/occ/python_occ_basic.cpp index f658998c..3c94fe1a 100644 --- a/libsrc/occ/python_occ_basic.cpp +++ b/libsrc/occ/python_occ_basic.cpp @@ -270,7 +270,7 @@ DLL_HEADER void ExportNgOCCBasic(py::module &m) { gp_Trsf trafo; trafo.SetTransformation(from, to); return trafo; }) .def(py::self * py::self) .def("__call__", [] (gp_Trsf & trafo, const TopoDS_Shape & shape) { - return BRepBuilderAPI_Transform(shape, trafo).Shape(); + return BRepBuilderAPI_Transform(shape, trafo, true).Shape(); }) .def("__str__", [](gp_Trsf & trafo) { diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index fe84b65c..0d259564 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -914,7 +914,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) gp_Vec du, dv; gp_Pnt p; surf->D1 (0,0,p,du,dv); - BRepPrimAPI_MakePrism builder(shape, h*du^dv); + BRepPrimAPI_MakePrism builder(shape, h*du^dv, true); for (auto typ : { TopAbs_EDGE, TopAbs_VERTEX }) for (TopExp_Explorer e(shape, typ); e.More(); e.Next())