Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!yale!eagle.wesleyan.edu!hoberoi From: hoberoi@eagle.wesleyan.edu Newsgroups: comp.sys.sgi Subject: tmesh sphere-> HOW ? Message-ID: <1990Aug16.163109.32446@eagle.wesleyan.edu> Date: 16 Aug 90 21:31:08 GMT Lines: 17 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.