mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
copy faces in occ transformations
This commit is contained in:
parent
8f77aa458b
commit
92ade9d800
@ -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)
|
||||
{
|
||||
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user