tmesh sphere-> HOW ?
hoberoi at eagle.wesleyan.edu
hoberoi at eagle.wesleyan.edu
Fri Aug 17 07:31:08 AEST 1990
Hi,
1). Has someone written a routine that renders spheres using tmesh routines ?
something of the sort
initsphere( npoly ); /* npoly = number of polygns used to approximate
the sphere */
makesphere( x, y, z, radius );
At the moment I generate a unit sphere using adaptive subdivision of an
icoashedron/octahedron, and use a series bgnpoly() endpoly() commands to make
an object ie. initsphere( npoly ). then translate and scale this unit sphere
but since there are > 1000 spheres the drawing speed is sloooow.
The idea of course is to make space filled drawings of molecules and
hopefully (!) rotate a low res ie. initsphere( 32 ) and switch to hi res.
gouard shaded object when done.
Himanshu.
More information about the Comp.sys.sgi
mailing list