← Back to team overview

yade-users team mailing list archive

Re: [Question #242575]: visualisatiion of spheres displacements by colour in 3d viewport

 

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

Bruno Chareyre posted a new comment:
Elaborating Jerome's suggestion, for future reference:
b.shape.color = scalarOnColorScale( (s.state.refPos - s.state.pos).norm() ,minDisp,maxDisp)

refPos is something you are free to play with, and is (0,0,0) by
default. To make the above line display displacement you need to set
refPos = pos before starting the erosion.

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.