Skip to content

Rigidification problem - Constraint rigidified part #129

Discussion options

You must be logged in to vote

Hi @bmauze

Thanks for your question.

As the yours scene is using the SofaPython2 binding and that this binding is now deprecated I prefered to translate it to SofaPython3. Which leads to the following simulation.

The scene used is the following

import Sofa
import numpy
from splib3.constants import Key
from math import sin, cos, sqrt
from stlib3.physics.constraints import *
from stlib3.physics.deformable import ElasticMaterialObject
from stlib3.physics.mixedmaterial import Rigidify
from splib3.objectmodel import SofaPrefab, SofaObject, setData

PI = 3.14159265359
meshRobot='bloc_v2_mesh1.vtk'

def createScene(rootNode):
    # Root node
    rootNode.dt = 0.05
    rootNode.gravity =[0, 0, -9…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bmauze
Comment options

@hugtalbot
Comment options

Answer selected by bmauze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants