← Back to team overview

yade-users team mailing list archive

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

 

Václav Šmilauer said:     (by the date of Thu, 15 Mar 2007 09:37:49 +0100)

> Hello, I looked at the code and since it was quite messy, I tried to clean 
> it up. See the current version at 
> http://svn.berlios.de/wsvn/yade/branches/scons-layout/pkg/dem/Engine/EngineUnit/InteractingBox2InteractingSphere4SpheresContactGeometry.cpp?op=file&rev=0&sc=0
> (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.

wow. great cleaning work. This code comes from Olivier (why there's
my name at the top of the file?). We in Grenoble we will check this formulas again to be sure - I don't know answer now.

-- 
# Janek Kozicki
_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users



References