comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: a polygon version of polyline..
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: a polygon version of polyline.. [message #41117 is a reply to message #41111] Thu, 30 September 2004 16:22 Go to previous messageGo to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
George Millward wrote:

> Rick, Mark,
>
> Thanks for the help. It looks like I'm going to have to get down and
> dirty with this then.
> The image is from a simulation of the Earth's magnetic field - in the
> core. My needs are a little less extravagant. Mostly about 6 to 10
> lines plotted will be enough - so I think I have hardware that will
> cope ok. Not sure what sofware was used in that image - but it is
> just OpenGL polygons with a couple of light souces yeh - so I assume
> IDL could produce something essentially the same.
>
> Anyhow, I'll get back to this if i make any headway - but it could be
> some time ;o)

After writing documentation most of the day I thought I would hash out
the rest of this object. I needed a break!

Behold RHTgrTube. There are few comments and the code is a bit of a
mess but it should get you pretty far along your way. The only real
limitation I can see right now is that your polyline (input) vertices
must be sequentially ordered. Also, if two sequential polyline verts
are in the same place it will choke. The tube twists a bit when you go
around a corner. The normals shift and the lighting is a bit off
(noticeable in the first demo image). Feel free to fix that if you want :)

Compile it and run the "testtube" procedure for a demo.

You can pick it up here:

http://www.acoustics.washington.edu/~towler/programs/rhtgrtu be__define.pro


Have fun.


-Rick
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Disable Virtual Machine
Next Topic: uniform expansion

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 07:10:57 PDT 2025

Total time taken to generate the page: 1.01144 seconds