stlib.physics.deformable

Templates for deformable objects.

Content:

ElasticMaterialObject Creates an object composed of an elastic material.

stlib.physics.deformable.ElasticMaterialObject

class stlib.physics.deformable.ElasticMaterialObject(attachedTo=None, volumeMeshFileName=None, name='ElasticMaterialObject', rotation=[0.0, 0.0, 0.0], translation=[0.0, 0.0, 0.0], scale=[1.0, 1.0, 1.0], surfaceMeshFileName=None, collisionMesh=None, withConstrain=True, surfaceColor=[1.0, 1.0, 1.0], poissonRatio=0.3, youngModulus=18000, totalMass=1.0, solver=None)[source]

Creates an object composed of an elastic material.

createPrefab(volumeMeshFileName=None, name='ElasticMaterialObject', rotation=[0.0, 0.0, 0.0], translation=[0.0, 0.0, 0.0], scale=[1.0, 1.0, 1.0], surfaceMeshFileName=None, collisionMesh=None, withConstrain=True, surfaceColor=[1.0, 1.0, 1.0], poissonRatio=0.3, youngModulus=18000, totalMass=1.0, solver=None)[source]
addCollisionModel(collisionMesh, rotation=[0.0, 0.0, 0.0], translation=[0.0, 0.0, 0.0], scale=[1.0, 1.0, 1.0])[source]
addVisualModel(filename, color, rotation, translation, scale=[1.0, 1.0, 1.0])[source]
cls

alias of ElasticMaterialObject

definedloc = ('/home/docs/checkouts/readthedocs.org/user_builds/stlib/checkouts/latest/docs/sphinx/source/../../../python/stlib/physics/deformable/elasticmaterialobject.py', 9)