shape.Scale keeps names

This commit is contained in:
Christopher Lackner 2021-09-16 11:40:48 +02:00
parent d7a421b99a
commit 95e09828a6

View File

@ -800,7 +800,9 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
{ {
gp_Trsf trafo; gp_Trsf trafo;
trafo.SetScale(p, s); trafo.SetScale(p, s);
return BRepBuilderAPI_Transform(shape, trafo).Shape(); BRepBuilderAPI_Transform builder(shape, trafo);
PropagateProperties(builder, shape);
return builder.Shape();
}, py::arg("p"), py::arg("s"), }, py::arg("p"), py::arg("s"),
"copy shape, and scale copy by factor 's'") "copy shape, and scale copy by factor 's'")