-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SofaPython3] Changes how addObject process its arguments when they are of type: numpy & data #198
[SofaPython3] Changes how addObject process its arguments when they are of type: numpy & data #198
Commits on Sep 23, 2021
-
[SofaPython3] Add type coercion from numpy array to sofa parsable str…
…ing (in object creation) So we can write: ```python def createScene(root): root.addObject("MechanicalObject", name="loader", filename="mesh/cube.obj") root.addObject("MechanicalObject", name="dofs", position=root.loader.position) # to make a link root.addObject("MechanicalObject", name="dofs", position=root.loader.position.value) # to make a copy by value ```
Configuration menu - View commit details
-
Copy full SHA for 8536c1c - Browse repository at this point
Copy the full SHA 8536c1cView commit details -
[SofaPython] Restore the copy by default approach in toSofaParsableSt…
…ring Because it breaks bckward compatibility and was not really better.
Configuration menu - View commit details
-
Copy full SHA for e7a9eaf - Browse repository at this point
Copy the full SHA e7a9eafView commit details -
[Sofa.Core] Add an attribute 'link' to Binding_BaseData.
So we can write: object.position.link instead of object.position.getLinkPath() Which will make the syntax a bit more compact. Signed-off-by: Damien Marchal <damien.marchal@univ-lille1.fr>
Configuration menu - View commit details
-
Copy full SHA for f1bd435 - Browse repository at this point
Copy the full SHA f1bd435View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5c12fc4 - Browse repository at this point
Copy the full SHA 5c12fc4View commit details -
SofaPython3] Do link by default.
Signed-off-by: Damien Marchal <damien.marchal@univ-lille1.fr>
Configuration menu - View commit details
-
Copy full SHA for e2d1234 - Browse repository at this point
Copy the full SHA e2d1234View commit details -
Configuration menu - View commit details
-
Copy full SHA for 292ccec - Browse repository at this point
Copy the full SHA 292ccecView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c1d0c9 - Browse repository at this point
Copy the full SHA 9c1d0c9View commit details
Commits on Sep 27, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 33a34c1 - Browse repository at this point
Copy the full SHA 33a34c1View commit details
Commits on Oct 28, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 2eda47f - Browse repository at this point
Copy the full SHA 2eda47fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44dbe9c - Browse repository at this point
Copy the full SHA 44dbe9cView commit details