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

Home » Public Forums » archive » Re: drawing arrows in 3D
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: drawing arrows in 3D [message #12739] Sat, 05 September 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
������� �������� (vetoulis@fosters.umd.edu) writes:

> I need to draw a few arrows on a 3D plot to show directions of
> single lines etc. THe ARROW procedure does only 2d. It would take
> some effort to make a 3d analog of it. Is there any better, ready
> solution? I know x,y,z coordinates of beginning and end of the line
> and draw it with calls to create_view and plots.

Just draw the arrows with PlotS (it will draw in 3D). You
may have to break the line up into segments. Then just draw
a little 3D arrowhead with PlotS and put it on one end of
the line. The arrowhead could be a little octagon centered
on the line and normal to it, just back from the end. Then
each vertex of the octagon could be connected to the end
point of the line. That should make a nice arrow, I think.

A nice touch would be to make the "slats" of the arrowhead
filled polygons. You could get a great 3D look to it. :-)

Good luck,

David

----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438, Toll-Free Book Orders: 1-888-461-0155
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Menu separation.
Next Topic: Re: CALL_EXTERNAL puzzle (still) ?

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

Current Time: Fri Oct 10 16:09:51 PDT 2025

Total time taken to generate the page: 1.44059 seconds