From 9efb9b1682cdf4d34a5cb4ff69166432148f95a0 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 11 Oct 2021 12:48:43 +0200 Subject: [PATCH] [occ] multiply 2 gp_Vec --- libsrc/occ/python_occ_basic.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libsrc/occ/python_occ_basic.cpp b/libsrc/occ/python_occ_basic.cpp index f2cc878e..2d955770 100644 --- a/libsrc/occ/python_occ_basic.cpp +++ b/libsrc/occ/python_occ_basic.cpp @@ -115,6 +115,7 @@ DLL_HEADER void ExportNgOCCBasic(py::module &m) .def("__add__", [](gp_Vec v1, gp_Vec v2) { return v1+v2; }) .def("__sub__", [](gp_Vec v1, gp_Vec v2) { return v1-v2; }) .def("__rmul__", [](gp_Vec v, double s) { return s*v; }) + .def("__mul__", [](gp_Vec v1, gp_Vec v2) { return v1*v2; }) .def("__neg__", [](gp_Vec v) { return -v; }) .def("__xor__", [](gp_Vec v1, gp_Vec v2) { return v1^v2; })