← Back to team overview

yade-users team mailing list archive

Re: contacts between box and sphere - geometrical BUG?!!!


Hello, I looked at the code and since it was quite messy, I tried to clean 
it up. See the current version at 
(make sure you have browser encoding set to UTF-8, otherwise you will not 
see images properly).

It is functionally equivalent, and I have doubts about the case where 
sphere's center is outside the box: see the image and FIXME below it in the 
else branch of "if(inside)". I think it is wrong, but perhaps I made a mistake.

Otherwise, that should give you idea where is the contact point - always in 
the middle between pt1 and pt2.

Regards, Vaclav
Yade-users mailing list

Follow ups