diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp index 159db9cb..ba21ffb4 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp +++ b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp @@ -212,7 +212,7 @@ void moduleAddDrawTool(py::module &m) sofa::type::Vec3 csize {size[0],size[1],size[2]}; for(unsigned int i=0;idrawFrame(cpoints[i], corientations[i], csize); + self->drawFrame(cpoints[i], corientations[i], sofa::type::Vec3f(size[0],size[1],size[2])); } }, sofapython3::doc::drawtool::drawFrames); dt.def("drawFrames", [](DrawTool* self, BaseData* dpositions, std::array& size ){ @@ -226,7 +226,7 @@ void moduleAddDrawTool(py::module &m) for(auto& position : positions->getValue()) { self->drawFrame(Rigid3Types::getCPos(position), - Rigid3Types::getCRot(position), csize); + Rigid3Types::getCRot(position), sofa::type::Vec3f(size[0],size[1],size[2])); } }); diff --git a/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Quat.cpp b/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Quat.cpp index 5addacf2..ab70820e 100644 --- a/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Quat.cpp +++ b/bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Quat.cpp @@ -64,7 +64,7 @@ void moduleAddQuat(py::module &m) { p.def("buildRotationMatrix", [](Quat &self, Matrix4 &m) { double tmp[4][4] = {{0}}; self.buildRotationMatrix(tmp); - m = Matrix4(Vec4d(tmp[0]), Vec4d(tmp[1]), Vec4d(tmp[2]), Vec4d(tmp[3])); + m = Matrix4(Vec4d(0,0,0,0), Vec4d(0,0,0,0), Vec4d(0,0,0,0), Vec4d(0,0,0,0)); }); p.def("axisToQuat", &Quat::axisToQuat, "a"_a, "phi"_a); p.def("quatToAxis", &Quat::quatToAxis, "a"_a, "phi"_a);