copy faces in occ transformations

This commit is contained in:
mhochsteger@cerbsim.com 2021-11-30 20:42:59 +01:00
parent 8f77aa458b
commit 92ade9d800
2 changed files with 2 additions and 2 deletions

View File

@ -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)
{

View File

@ -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())