POV-Ray : Newsgroups : povray.general : mesh for icosahedron Server Time
8 Aug 2024 16:16:50 EDT (-0400)
  mesh for icosahedron (Message 11 to 12 of 12)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: John VanSickle
Subject: Re: mesh for icosahedron
Date: 3 Jan 2001 03:28:00
Message: <3A52F757.4265EEF6@erols.com>
"Greg M. Johnson" wrote:
> 
> 1) Does anyone have code for making a mesh which is an icosahedron?

If you download my Surface Subdivision Suite at

  http://users4.50megs.com/enphilistor/sss.htm

you should find therein code that will make you an icosahedron; it
can also subdivide it to make a smoother sphere.

Regards,
John


Post a reply to this message

From: Ron Parker
Subject: Re: mesh for icosahedron
Date: 3 Jan 2001 15:12:09
Message: <slrn9571sr.bc6.ron.parker@fwi.com>
On Sat, 30 Dec 2000 18:40:37 -0500, Chris Huff wrote:
>In article <3a4e6e6c$1@news.povray.org>, "Jan Walzer" <jan### [at] lzernet> 
>wrote:
>
>> It should be go with a recursive algorithm .... (sounds like StarTrek,
>> heheeee ...)
>
>...snip...
>
>That won't let you specify a specific number of triangles to use, only a 
>recursion level. The number of triangles increases rather rapidly with 
>recursion level.

One way to provide more options is to also allow starting with a regular
octahedron or icosahedron.

My golfball code (at the address below) contains the germ of this algorithm
for a starting point of an icosahedron.  It only generates the vertices, 
not the triangles, but it might be a good starting point.   I've been meaning
to generalize it a little (replace the constant #defines with a smaller number
of constant #defines) but I haven't gotten around to it yet.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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