← Back to team overview

yade-users team mailing list archive

Re: [Question #160858]: Geometrical intersection between 2 objects

 

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

Kneib François posted a new comment:
Yes I think I see the problem, and it's the same if the sphere is just on the extremity of the chained cylinder.
To fix it, I wrote that :
 if (-rs-rc<ratio<1.0+rs+rc):return True
to take care of the sphere and cylinder's radius.
In fact the scalar product have to be inside a larger interval than just 0<ratio<1. I normalized rs and rc :
rs=rs/norm(u)
rc=rc/norm(u)
So I can directly enlarge the interval.
Is this what you were thinking about ?

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