From c5fd45f762de51f480ece238ab0ecd3249915c5d Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sun, 29 Sep 2019 17:32:06 +0800 Subject: [PATCH] Base: remove VectorPy right multiplication to matrix/placement/rotation --- src/Base/VectorPyImp.cpp | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/Base/VectorPyImp.cpp b/src/Base/VectorPyImp.cpp index a0271bd82d..712315dcb1 100644 --- a/src/Base/VectorPyImp.cpp +++ b/src/Base/VectorPyImp.cpp @@ -145,24 +145,6 @@ PyObject* VectorPy::number_multiply_handler(PyObject *self, PyObject *other) if (PyObject_TypeCheck(self, &(VectorPy::Type))) { Base::Vector3d a = static_cast(self) ->value(); - if (PyObject_TypeCheck(other, &MatrixPy::Type)) { - Base::Matrix4D b = static_cast(other)->value(); - b.scale(a); - return new MatrixPy(b); - } - - if (PyObject_TypeCheck(other, &PlacementPy::Type)) { - Base::Placement b = static_cast(other)->value(); - Vector3d res; - b.multVec(a,res); - return new VectorPy(res); - } - - if (PyObject_TypeCheck(other, &RotationPy::Type)) { - Base::Rotation b = static_cast(other)->value(); - return new VectorPy(b.multVec(a)); - } - if (PyObject_TypeCheck(other, &(VectorPy::Type))) { Base::Vector3d b = static_cast(other)->value(); Py::Float mult(a * b);