yade-users team mailing list archive
Mailing list archive
Re: [Question #697545]: How to create a cylinder model with hard and soft interlayer
Question #697545 on Yade changed:
Liu Changdong posted a new comment:
I have tried the second method you gave me ‘using the pack.inHalfSpace’ . However, the 'predicate(pos,r)' shows an error.
After my trial and error, I found the following method should to be
halfSpace1 = pack.inHalfSpace((0.4,0.4,.4),Vector3(1,1,1)) # pack.inHalfSpace(point,normal direction)
halfSpace2 = pack.inHalfSpace((0.6,0.6,.6),Vector3(-1,-1,-1))
#predicate0 = halfSpace1 & halfSpace2 # intersection
pos = b.state.pos
r = b.shape.radius
return halfSpace1(pos,r) and halfSpace2(pos,r)
You received this question notification because your team yade-users is
an answer contact for Yade.