From a43c3ed28c7bd71514d3e4a6901cb0b3eb3703dd Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Tue, 3 Aug 2021 14:29:57 +0200 Subject: [PATCH] translation --- libsrc/occ/python_occ.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/occ/python_occ.cpp b/libsrc/occ/python_occ.cpp index 8fce42a2..acf0dffe 100644 --- a/libsrc/occ/python_occ.cpp +++ b/libsrc/occ/python_occ.cpp @@ -409,6 +409,7 @@ DLL_HEADER void ExportNgOCC(py::module &m) py::class_(m, "gp_Trsf") .def(py::init<>()) .def("SetMirror", [] (gp_Trsf & trafo, const gp_Ax1 & ax) { trafo.SetMirror(ax); return trafo; }) + .def_static("Translation", [] (const gp_Vec & v) { gp_Trsf trafo; trafo.SetTranslation(v); return trafo; }) .def_static("Mirror", [] (const gp_Ax1 & ax) { gp_Trsf trafo; trafo.SetMirror(ax); return trafo; }) .def_static("Rotation", [] (const gp_Ax1 & ax, double ang) { gp_Trsf trafo; trafo.SetRotation(ax, ang); return trafo; }) .def_static("Transformation", [] (const gp_Ax3 & ax) { gp_Trsf trafo; trafo.SetTransformation(ax); return trafo; })