Skip to content

Support all types of mappings#593

Open
alxbilger wants to merge 1 commit intosofa-framework:masterfrom
alxbilger:mappings
Open

Support all types of mappings#593
alxbilger wants to merge 1 commit intosofa-framework:masterfrom
alxbilger:mappings

Conversation

@alxbilger
Copy link
Contributor

This is all the types defined in Mapping.cpp

Copy link
Contributor

@fredroy fredroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mapping.{h,cpp} is more universal 🥸 (not explicit on double)


void moduleAddMapping(py::module &m) {
declareMapping<Rigid3dTypes, Vec3dTypes>(m);
declareMapping<Vec1dTypes, Vec1dTypes>(m);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
declareMapping<Vec1dTypes, Vec1dTypes>(m);
declareMapping<Vec1Types, Vec1Types>(m);

I just do one just to show, and you will need to modify the alias before (using sofa::defaulttype::Vec1Types blabla)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants