← Back to team overview

yade-dev team mailing list archive

Re: [Bug 1031703] [NEW] "extra" value for bodies

 

Hello Christian,

sorry if I misunderstood your question, but would you like to achieve this?


Yade [1]: b = utils.sphere((1,1,1),1)

Yade [2]: O.bodies.append(b)
 ->  [2]: 0

Yade [3]: b.extra = 4

Yade [4]: b.extra
 ->  [4]: 4

Yade [5]: b.extra = Vector3(1,2,3)

Yade [6]: b.extra
 ->  [6]: Vector3(1,2,3)


Jan

Follow ups

References