From 52e9c3b0d31d8c9d39b22e5a0d31e4377631dfa5 Mon Sep 17 00:00:00 2001 From: Damien Marchal Date: Thu, 30 Oct 2025 23:09:58 +0100 Subject: [PATCH] Add Quaternion to python factory so we can create data field with this type. --- Plugin/src/SofaPython3/PythonFactory.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Plugin/src/SofaPython3/PythonFactory.cpp b/Plugin/src/SofaPython3/PythonFactory.cpp index a16bffb0..9949bbe9 100644 --- a/Plugin/src/SofaPython3/PythonFactory.cpp +++ b/Plugin/src/SofaPython3/PythonFactory.cpp @@ -508,6 +508,11 @@ bool PythonFactory::registerDefaultTypes() PythonFactory::registerType("Rigid3f::Coord"); PythonFactory::registerType("Rigid3::Coord"); + /// Quaternion + PythonFactory::registerType>("Quatd"); + PythonFactory::registerType>("Quatf"); + PythonFactory::registerType>("Quat"); + // Rigid3 vectors PythonFactory::registerType("Rigid3d::VecCoord"); PythonFactory::registerType("Rigid3f::VecCoord");