POV-Ray : Newsgroups : povray.binaries.images : Stellated Icosahedra (89kbbu) : Re: Stellated Icosahedra (89kbbu) Server Time
3 Oct 2024 02:20:15 EDT (-0400)
  Re: Stellated Icosahedra (89kbbu)  
From: David Fontaine
Date: 23 Feb 2000 17:48:54
Message: <38B46340.E101B0A9@faricy.net>
Gail Shaw wrote:

> Any chance of some code?

My code would be useless because I calculated all the intersection points
outside of POV and just pasted in the final result. But I did find a nice way
to store all the possibilities:
#declare Pt=array[n]{All the points of intersection}
#declare Sc=array[n][3]{Points which enclose each triangular "sector"}
#declare Sectors01=array[n]{All "sectors" included in stellation 1}
...
#declare Sectors59=array[n]{All "sectors" included in stellation 59}

then call a macro, StellatedIcosahedron(SectorsN), which places all the mesh
stuff.
There is almost surely a more efficient way than what I did (for certain
reasons), but this works fine for me.

--
___     ______________________________________________________
 | \     |_                 <dav### [at] faricynet> <ICQ 55354965>
 |_/avid |ontaine               http://www.faricy.net/~davidf/

"Sitting on a cornflake, waiting for the van to come" -Beatles


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.