From b57e32dd1f95420b5836548385c33e0bf024df19 Mon Sep 17 00:00:00 2001 From: hugtalbot Date: Wed, 14 Oct 2026 22:47:10 +0200 Subject: [PATCH] Following v26.12 lifecycle --- bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp | 4 ++-- bindings/SofaTypes/src/SofaPython3/SofaTypes/Binding_Quat.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Core/Binding_DrawTool.cpp index 159db9cbd..ba21ffb4c 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 5addacf22..ab70820ee 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);