[comp.graphics] sphere generation

mcooper@suna1.cs.uiuc.edu (02/16/90)

I'm looking for a fairly simple algorithm to generate an approximate
sphere of radius r out of n polygons...

i.e. for n = 8, I'd get an octahedron(triangular faces).
     for n = 6, I'd get a cube, etc. etc...



+-------------------------------------+----------------------------------------+
|  "When the going gets weird,        |                                        |
|              the weird turn pro."   |  Marc Cooper	mcooper@cs.uiuc.edu    |
|		  		      |  University of Illinois, C-U	       |
|		 -Hunter S. Thompson  |					       |
+-------------------------------------+----------------------------------------+

rick@hanauma.stanford.edu (Richard Ottolini) (02/17/90)

In article <23900004@suna1@ mcooper@suna1.cs.uiuc.edu writes:
@
@
@
@I'm looking for a fairly simple algorithm to generate an approximate
@sphere of radius r out of n polygons...

Would it be easier to pose this as fitting n vertices constrained to be
the maximum distance apart?  Then the vertices would be triangulated.

mcooper@suna1.cs.uiuc.edu (02/19/90)

Talk about enthusiastic response!!


Thanks to all who replied.


Yes, I suppose making it n vertices at maximum distance would be easier, 
(and for my purposes, perfectly acceptable)