← Back to team overview

yade-users team mailing list archive

Re: [Question #688867]: Applying force on Stl imported file

 

Question #688867 on Yade changed:
https://answers.launchpad.net/yade/+question/688867

    Status: Open => Answered

Robert Caulk proposed the following answer:
>> roddd =
O.bodies.append(ymport.stl(mesh+'.stl',wire=True,material='wall'))

This command sets roddd as a list of ids comprising the facet. So
iterate on that list:

for b in roddd:
    b.state.inertia=(1,1,1)
    b.state.blockedDOFs='Z'
    O.forces.setPermF(b.id,(0,-300,0))

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.