>Thanks for your reply. The objects I'm using are:
>
>Pick -> Extract -> Compute -> Select -> Streamline
>
>All the data I'm using are 2-D, but I still can get the streamline. If I
>input the starting point directly in the configure control, then it works
>correctly. Pick returns a 3-D vector, we can't get the correct 2-D vector
>from this 3-D vector, is that right? Thanks.
>
>yuzhong
>
>

Use Print("rd") on the output of Pick and examine the structure. Also, if
you haven't already, turn on interpolate (make it 1) in Pick. (look at the
output of Pick before and after you activate interpolate to see what it
does).

One of the vectors you get back from Pick (with interpolate) is where you
actually clicked. Another vector is the nearest actual vertex in your data
to the clicked point.

Extract the one you want, Compute([a.x,a.y]) and you should have a
perfectly good 2D point for Streamline start.

Chris Pelkie
Vice President/Scientific Visualization Producer
Conceptual Reality Presentations, Inc.
30 West Meadow Drive
Ithaca, NY 14850
[EMAIL PROTECTED]
(607) 257-8335 or (607) 254-8794

Reply via email to