|
![](/i/fill.gif) |
Thies Heidecke wrote:
>
> Hi Deaken,
Hello.
> first of all, good work so far.
Thanks.
> >// Bugs: The math is slightly off on both the Dodecahedron and the
> >// Icosahedron. I am still tracking this down, I'm afraid.
>
> As i read this i thought my source could be helpful to you, feel free
> to use it in your include-file if you like it.
>
> Some explanations:
> r is the radius of the outer bounding sphere of the icosahedron
I use 1 for this, like your default. "Bounded by the unit sphere", as
they say.
> h,a,b,c,d are some precalculated constants.
Hm. You seem to have a much better grasp on the geometry involved than
I do. I was foolish, and trusted reference pages which I found on the
web. :)
> I hope you find it useful.
Indeed. Many thanks.
> // Icosahedron - Vertex - Definitions :
> #declare r = 1.0;
> #declare sqrt5 = sqrt(5.0);
> #declare h = 1.0/sqrt5;
> #declare a = 2.0*sqrt((5.0+sqrt5)/40.0);
> #declare b = 2.0*sqrt((5.0-sqrt5)/40.0);
> #declare c = (5.0-sqrt5)/10.0;
> #declare d = (5.0+sqrt5)/10.0;
Interesting. I must study this. Thanks again.
Deaken
Post a reply to this message
|
![](/i/fill.gif) |