Skip to content

Commit 8ba1e2c

Browse files
Register in the PythonFactory Rigid3::Coord (sofa-framework#544)
Because currently only Rigid3::VecCoord was supported.
1 parent 72ed0e6 commit 8ba1e2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Plugin/src/SofaPython3/PythonFactory.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,12 @@ bool PythonFactory::registerDefaultTypes()
503503
PythonFactory::registerType<sofa::core::topology::Topology::Hexa>("Hexa");
504504
PythonFactory::registerType<sofa::core::topology::Topology::Penta>("Penta");
505505

506-
// State vectors
506+
// Rigid
507+
PythonFactory::registerType<sofa::defaulttype::Rigid3dTypes::Coord>("Rigid3d::Coord");
508+
PythonFactory::registerType<sofa::defaulttype::Rigid3fTypes::Coord>("Rigid3f::Coord");
509+
PythonFactory::registerType<sofa::defaulttype::Rigid3Types::Coord>("Rigid3::Coord");
510+
511+
// Rigid3 vectors
507512
PythonFactory::registerType<sofa::defaulttype::Rigid3dTypes::VecCoord>("Rigid3d::VecCoord");
508513
PythonFactory::registerType<sofa::defaulttype::Rigid3fTypes::VecCoord>("Rigid3f::VecCoord");
509514
PythonFactory::registerType<sofa::defaulttype::Rigid3Types::VecCoord>("Rigid3::VecCoord");

0 commit comments

Comments
 (0)