Skip to content

Update scenes for v26.06: names, SubCollisionPipeline and unit example - #5

Open
hugtalbot wants to merge 2 commits into
sofa-framework:mainfrom
hugtalbot:202607_update_scenes_v2606
Open

Update scenes for v26.06: names, SubCollisionPipeline and unit example#5
hugtalbot wants to merge 2 commits into
sofa-framework:mainfrom
hugtalbot:202607_update_scenes_v2606

Conversation

@hugtalbot

Copy link
Copy Markdown
Contributor

This PR adds the following features to the tutorial :

  • names coherency (scene 0)
  • compatibility with SubCollisionPipeline and object addition/removal
  • and unit example

from Sofa.Units.Definitions import s, m, mm, N, g, kg, Pa
from Sofa.Units.UnitSystem import MechanicalUnitSystem

scene_unit = MechanicalUnitSystem(s, m, kg)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sure about these units ? The mesh is in m ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good point I forgot to check .. :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants