Return-Path: <kc@omnigroup.com>
Received: from aerospace.aero.org by antares.aero.org (4.1/AMS-1.0)
	id AA23806 for  /u/strauss/bin/mail_handler.pl strauss; Mon, 14 Dec 92 12:03:38 PST
Received: from yang.cpac.washington.edu by aerospace.aero.org with SMTP (5.65c/6.0.GT)
	id AA07849 for strauss@antares.aero.org; Mon, 14 Dec 1992 12:03:30 -0800
Posted-Date: Mon, 14 Dec 92 11:57:07 -0800
Received: from blegga.UUCP by yang.cpac.washington.edu
	(4.1/internet->uucp gateway 2.4.2) id AA21192; Mon, 14 Dec 92 12:04:45 PST
Received: by omnigroup.com (NX5.67c/NX3.0M-og1.0)
	id AA10861; Mon, 14 Dec 92 11:57:07 -0800
Date: Mon, 14 Dec 92 11:57:07 -0800
From: Ken Case <kc@omnigroup.com>
Message-Id: <9212141957.AA10861@omnigroup.com>
Received: by NeXT.Mailer (1.87.1)
Received: by NeXT Mailer (1.87.1)
To: <cfleming@alleg.edu>
Subject: Re: improving wireframe images when using Interactive Renderman
Cc: rman@aero.org

> Is it possible to increase the number of polygons used to display
> shapes generated by functions such as RiSphere() and Ri_Torus()
> when using the Interactive Renderman renderer on the NeXT?  I have
> used patch meshes to get better looking wireframe surfaces with
> Interactive Renderman, but it seems there should be a simpler way
> to do it than using meshes.

You bet!  Call RiGeometricApproximation() setting the tesselation density.   
(This is documented in QRMSpec.rtfd in the 3.0 Release Notes.)

As an example of how to do this, here's a pair of methods we use in a  
subclass of N3DCamera to control the tesselation density from a slider:

    - setGeometricApproximation:(RtFloat)divisions
    {
	RtFloat tesselationParametric[2];

	tesselationParametric[0] = divisions;
	tesselationParametric[1] = divisions;
	RiGeometricApproximation(RI_TESSELATION, RI_PARAMETRIC,
				 tesselationParametric, RI_NULL);
	[self display];
    }

    - takeGeometricApproximationFrom:sender
    {
	return [self setGeometricApproximation:[sender floatValue]];
    }

Have fun!

				Ken Case
				The Omni Group

