From 7129be33e6dd8af62d93f6e139716f08910358ad Mon Sep 17 00:00:00 2001 From: Damien Marchal Date: Mon, 27 Oct 2025 13:28:22 +0100 Subject: [PATCH] Register in the PythonFactory Rigid3::Coord Because currently only Rigid3::VecCoord was supported. --- Plugin/src/SofaPython3/PythonFactory.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plugin/src/SofaPython3/PythonFactory.cpp b/Plugin/src/SofaPython3/PythonFactory.cpp index 3a9c678b..a16bffb0 100644 --- a/Plugin/src/SofaPython3/PythonFactory.cpp +++ b/Plugin/src/SofaPython3/PythonFactory.cpp @@ -503,7 +503,12 @@ bool PythonFactory::registerDefaultTypes() PythonFactory::registerType("Hexa"); PythonFactory::registerType("Penta"); - // State vectors + // Rigid + PythonFactory::registerType("Rigid3d::Coord"); + PythonFactory::registerType("Rigid3f::Coord"); + PythonFactory::registerType("Rigid3::Coord"); + + // Rigid3 vectors PythonFactory::registerType("Rigid3d::VecCoord"); PythonFactory::registerType("Rigid3f::VecCoord"); PythonFactory::registerType("Rigid3::VecCoord");