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

Home » Public Forums » archive » Re: Plotting streamlines 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: Plotting streamlines in 3D [message #42394] Tue, 25 January 2005 13:59
Mark Douglas is currently offline  Mark Douglas
Messages: 2
Registered: January 2005
Junior Member
David Fanning wrote:
> Uh, well, object graphics can't really be explained
> in a couple of paragraphs, really. Maybe a short answer
> is you would use the output from Streamline to create
> an IDLgrPolygon object, and you could try passing that
> to XObjView. That might get you started in the right
> direction.
>
> For more info, I'd get ahold of Ronn Kling's book,
> Power Graphics with IDL. I don't think you can learn
> object graphics without that book. :-)
>
> Cheers,
>
> David

whoa

I think I'll stick with plot_3dbox(), I don't think having ribbons is
worth the extra effort!

Thanks for the reply though :)

Mark
Re: Plotting streamlines in 3D [message #42395 is a reply to message #42394] Tue, 25 January 2005 12:08 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Douglas writes:

> I knew you had to feed streamline() with data calculated from
> particle_trace(), didn't know you had to render it though, it's not as
> if I was on an SGi or anything...! In the end I discovered plot_3dbox(),
> which together with plots() met my needs.
>
> How would I go about rendering it though? Don't want to admit defeat
> just yet!

Uh, well, object graphics can't really be explained
in a couple of paragraphs, really. Maybe a short answer
is you would use the output from Streamline to create
an IDLgrPolygon object, and you could try passing that
to XObjView. That might get you started in the right
direction.

For more info, I'd get ahold of Ronn Kling's book,
Power Graphics with IDL. I don't think you can learn
object graphics without that book. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: Plotting streamlines in 3D [message #42396 is a reply to message #42395] Tue, 25 January 2005 11:25 Go to previous message
Mark Douglas is currently offline  Mark Douglas
Messages: 2
Registered: January 2005
Junior Member
David Fanning wrote:
> I find the documentation for PARTICLE_TRACE and STREAMLINE
> a bit dense, too. But I presume you know these two routines
> work together (PARTICLE_TRACE preparing input for STREAMLINE),
> and that the result needs to be rendered (probably, or I can
> understand your frustration) in an object graphics program.
>
> Is this the latter what you are frustrated with?
>
> A few more details of what you have actually tried would
> help. :-)
>
> Cheers,
>
> David
>

I knew you had to feed streamline() with data calculated from
particle_trace(), didn't know you had to render it though, it's not as
if I was on an SGi or anything...! In the end I discovered plot_3dbox(),
which together with plots() met my needs.

How would I go about rendering it though? Don't want to admit defeat
just yet!

Thanks,

Mark
Re: Plotting streamlines in 3D [message #42397 is a reply to message #42396] Tue, 25 January 2005 07:12 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
mark.t.douglas@gmail.com writes:

> I can plot streamlines (well, magnetic field lines, but anyway) in 2D
> easily enough but getting them to plot in 3D is a task that is filling
> me with a terrible rage - I just can't get it working! plots() doesn't
> seem suited to the task and I really can't figure out how streamline()
> or particle_trace() or anything like that works. I tried googling for
> help but all I got were 404s because it seems the last time anyone
> tried plotting streamlines in 3d and getting stuck doing so was in
> 2001.
>
> Anyone able to help? The field is analytic so I can get the field at
> any point easily enough (field(x,y,z) returns a three-element vector)
> and I can trace the field lines starting from any point too
> (trace(x,y,z,ds) returns a 3xN array consisting of the x,y and z coords
> of the nth point along it, with a stepsize ds) but plotting them in 3D
> is driving me mad!

I find the documentation for PARTICLE_TRACE and STREAMLINE
a bit dense, too. But I presume you know these two routines
work together (PARTICLE_TRACE preparing input for STREAMLINE),
and that the result needs to be rendered (probably, or I can
understand your frustration) in an object graphics program.

Is this the latter what you are frustrated with?

A few more details of what you have actually tried would
help. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
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: Plotting streamlines in 3D
Next Topic: IDLWAVE model on Linux

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

Current Time: Fri Oct 10 11:38:16 PDT 2025

Total time taken to generate the page: 1.67860 seconds