[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 3-d viewing
- Subject: Re: 3-d viewing
- From: davidf(at)dfanning.com (David Fanning)
- Date: Wed, 22 Mar 2000 08:50:22 -0700
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <Pine.GSO.4.05.10003211516580.23499-100000@grad> <MPG.1341b3d337bb8b07989a9d@news.frii.com>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:18997
I wrote yesterday:
> I'd start with a program like Simple_Surface to help you set up
> the Viewport coordinate system, add a trackball, etc. You will
> want to substitute a Polygon object for the Surface object in
> that program, but most of the infrastructure is already
> built for you, and you can certainly see from the surface
> object how to scale your polygon object into the view.
Since this took just a couple of minutes to do, I decided to
make it available to everyone. The program is named
Poly_Surface. You call it with the vertex and polygon
lists that you can obtain from a program like Shade_Volume:
IDL> Poly_Surface, vertices, polygons
If you call the program with no parameters I'll build you
a little spherical polygon object. :-)
IDL> Poly_Surface
You can find the program here:
ftp://ftp.dfanning.com/pub/dfanning/outgoing/idl_course/poly_surface.pro
Be aware that this program is NOT extensively tested.
I only spent about 5 minutes on it. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155