17
$\begingroup$

As we all know, Mathematica changes its logo design with every new version, while still maintaining the dodecahedral/icosahedral motif.

I have been able, through much digging around, to finally acquire the code for generating the logos corresponding to versions three, four, and five. I was able to obtain code for generating the version six logo from this blog post by Michael Trott (it is also available here).

However, I have not been so successful in finding code for the version two logo:

version 2 spikey

Some searching seems to indicate that there is code for this in one of the Mathematica Guidebooks by Trott, but the libraries I have access to do not have copies of these tomes. (Google Books will also not let me preview the pages where the code seems to be.)

I have also tried sending an e-mail to Michael Trott and Igor Rivin, but I have not gotten any response from them in three weeks, so it would seem that they are unable or unwilling to supply the code for generating the version two logo.

So, how might I generate the version 2 Mathematica spikey?

$\endgroup$
4
  • $\begingroup$ (I had wanted to ask how to generate the logos for versions seven and eight as well, but maybe that is for another time and place...) $\endgroup$ Feb 26, 2013 at 6:19
  • $\begingroup$ I'm wondering is it legal to post the code from the book here? $\endgroup$ Feb 26, 2013 at 16:13
  • $\begingroup$ Michael Trott gave a nice 5min talk about an interactive spikey explorer two years ago at the WR Tech conference, not sure if this is anywhere to be found... $\endgroup$
    – Yves Klett
    Feb 27, 2013 at 8:58
  • 1
    $\begingroup$ I included link to the code for 4,5 & 6. Can you include the link for 3? In case people are interested. $\endgroup$
    – Szabolcs
    Feb 27, 2013 at 16:24

2 Answers 2

16
$\begingroup$

I don't know how he did it. There doesn't seem to be an equation in any of the papers. Based on the only equation for a hyperbolic polyhedron available ($x^{2/3}+y^{2/3}+z^{2/3}=1$ for the hyperbolic octahedron), I have attempted to reconstruct the transformation leading from Euclidean to hyperbolic polyhedra.

Construct a function that we know would take an octahedron to the given hyperbolic octahedron. The form is complicated, so compile it to save a lot of time.

rsol = r /. Solve[{(r a)^(2/3) + (r b)^(2/3) == 1}, r];
rconv = rsol /. 
  Thread[{a, b} -> {(1 + Sqrt[Abs[2 R^2 - 1]])/(2 R),
      (1 - Sqrt[Abs[2 R^2 - 1]])/(2 R)}]
rcomp = Compile[{{R, _Real}}, Evaluate[rconv[[2]]], 
  CompilationTarget -> "C", RuntimeOptions -> "Speed"]

This has singularities at a couple important points that we can remove.

rR[r_ /; Abs[r - 1] < 0.001] := 1.0;
rR[r_ /; Abs[r - 1/\[Sqrt]2] < 0.001] := 0.5
rR[r_?NumericQ] := rcomp[r]

Then we can use it to hyperbolicize:

hyperbolicize[cR_][p_] := 
 p /. Polygon[x_] :> Polygon[#/Norm[#] rR[Norm[#]/cR] & /@ N[x]]

The function depends on the circumradius, and we need to select a scheme for subdividing the faces of the basal dodecahedron. A couple iterations of facebreak and edgebreak does a nice job.

facebreak[p_] := 
 p /. Polygon[x_] :> (Polygon[Append[#, Mean[x]]] &) /@ 
    Partition[Append[x, First[x]], 2, 1]

edgebreak[p_] := 
 p /. Polygon[x_] :> 
   Polygon /@ (Append[
        Partition[RotateRight[Riffle[x, #]], 3, 2, 1], #] &[
      Mean /@ Partition[x, 2, 1, 1]])

Module[{poly = "Dodecahedron"}, 
 Graphics3D[{hyperbolicize[PolyhedronData[poly, "Circumradius"]]@
    Nest[edgebreak@facebreak@# &, 
     Normal@PolyhedronData[poly, "Faces"], 2]}, Boxed -> False]]

Hyperbolic dodecahedron

$\endgroup$
2
  • 2
    $\begingroup$ Partition[Append[x, First[x]], 2, 1] is more compactly done as Partition[x, 2, 1, 1], while Mean /@ Partition[Append[x, First[x]], 2, 1] is better done as ListConvolve[{{1}, {1}}/2, x, -1]. Otherwise, I think this is a nice start; thanks! $\endgroup$ Feb 26, 2013 at 6:59
  • 1
    $\begingroup$ Nice. Might look a bit more like the old one if you turn off anti-aliasing. $\endgroup$
    – s0rce
    Feb 27, 2013 at 5:15
7
$\begingroup$

I never saw the OP's mail :( The answer is this: the polyhedron is the ideal polyhedron in the Poincare model of hyperbolic space (so the faces are spheres orthogonal to the unit sphere). To produce the picture, first generate the Platonic solid inscribed in the unit sphere. This can be thought of as the ideal polyhedron in the Beltrami-Klein model of hyperbolic space. The transformation of the Klein-Beltrami model into the Poincare model is described in this Wikipedia article, so just apply it (you need to subdivide the faces into triangles, and then apply the transformation to the vertices).

$\endgroup$
4
  • $\begingroup$ Hi, do you still have the Mathematica code you used a while back, or has it been buried somewhere? In particular, how exactly were the pentagonal faces subdivided into triangles? $\endgroup$ Jun 26, 2015 at 5:11
  • $\begingroup$ @J.M. I actually am having trouble finding the code, I will look more (or will just have to regenerate it...) $\endgroup$
    – Igor Rivin
    Jun 26, 2015 at 6:10
  • $\begingroup$ Sorry to bother you, Igor, but did you manage to find your old code? $\endgroup$ Jul 24, 2015 at 3:36
  • $\begingroup$ @J.M. I am pretty sure the code is distributed by WRI, but it's some paleolithic notebook, and certainly Mathematica 10 can't read it. I will check in another place, and let you know... $\endgroup$
    – Igor Rivin
    Jul 24, 2015 at 3:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.