yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03759
[Bug 550912] Re: RegularHex Pack, again
Let's consider 3 spheres in plane xy and 1 sphere above them, the fourth
sphere have equal distance from 3 spheres, if we project these distances
on plane xy, these projected lines have still equal size, so, the fourth
sphere is above of center of triangle. The center of triangle is also in
h/3 of edge.
--
RegularHex Pack, again
https://bugs.launchpad.net/bugs/550912
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
Status in Yet Another Dynamic Engine: Invalid
Bug description:
Hi Vaclav,
in file pack.py for RegularHex pack in bzr2112
I think y+= hy/2 must be y+= hy/3
also,when run it there is an error:
File "/home/moradi/YADE-trunk/YADE/lib/yade-bzr2112/py/yade/pack.py", line 206
<<<<<<< TREE
^
SyntaxError: invalid syntax
in file there are these lines:
<<<<<<< TREE
if k%2!=0: x+=a/2.; y+=h/3.
=======
if k%2!=0: x+=a/2.; y+=hy/2.
>>>>>>> MERGE-SOURCE
thank you
Nasibeh Moradi
References