Skip to content
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

Add hyperelastic FF trampoline class for python bindings #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jnbrunet
Copy link
Member

This PR will allow one to do something like

import SofaCaribou

class MyFF (SofaCaribou.SofaCaribou.HyperelasticForcefield_Hexahedron):
    def addForce(self, mp, f, x, v):
       print(x)
        SofaCaribou.SofaCaribou.HyperelasticForcefield_Hexahedron.addForce(self, mp, f, x, v)

def createScene(root):
    # (...)
    root.addObject(MyFF(printLog=True))

@jnbrunet jnbrunet self-assigned this Apr 26, 2022
@jnbrunet jnbrunet force-pushed the hyperelastic_forcefield_python_trampoline branch from 5405a8f to a862c22 Compare April 29, 2022 01:48
@jnbrunet jnbrunet force-pushed the hyperelastic_forcefield_python_trampoline branch from a862c22 to 8cf8ce8 Compare April 29, 2022 01:54
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.

1 participant