I'd suggest using a single field containing all the curves as polylines
rather than a whole lot of fields. It'd be a lot less overhead. A
polyline field is just like a normal field containing lines, except there's
an additional component, "polylines", which lists the offsets into the
connections component where each sequence of lines to be interpreted as a
single polyline begins. Then you can make data dependent on the polylines
component and use Color and Include to select and discriminate the
individual curves.
Greg
Chris Pelkie
<[EMAIL PROTECTED]> To:
[email protected]
Sent by: cc:
[EMAIL PROTECTED] Subject: Re: [opendx-users]
many 3D curves
son.ibm.com
08/13/2003 10:26 AM
Please respond to
opendx-users
Furue-san, let's rewrite the example as:
> #positions component
> object "pos_0001" class array type float rank 1 shape 3 items 120 data
> follows
> x y z
> x y z
> ...
> #connections component (1-D line in 3-space)
> object "conn_0001" class gridconnections counts 120
>
> #data component (optional)
> object "data_0001" class array type float rank 0 items 120 data follows
> d
> d
> ...
> attribute "dep" string "positions"
>
> #field 1
> object "field_0001" class field
> component "positions" value "pos_0001"
> component "connections" value "conn_0001"
> component "data" value "data_0001"
>
> #positions component
> object "pos_0002" class array type float rank 1 shape 3 items 120 data
> follows
> x y z
> x y z
> ...
> #connections component (1-D line in 3-space)
> object "conn_0002" class gridconnections counts 120
>
> #data component (optional)
> object "data_0002" class array type float rank 0 items 120 data follows
> d
> d
> ...
> attribute "dep" string "positions"
>
> #field 2
> object "field_0002" class field
> component "positions" value "pos_0002"
> component "connections" value "conn_0002"
> component "data" value "data_0002"
object "many_curves" class multigrid
member 0 value "field_0001"
member 1 value "field_0002"
and so on. Just define each field (each curve), then collect them into
a multigrid.
Import this file and use the same net I provided earlier, or get fancy
and add additional tools (Select) to
select out some subset of the curves, by their member ID (number).
How's the weather at U-Tokyo this year? It was beastly hot and humid
last time I was there (Aug-97).
On Wednesday, Aug 13, 2003, at 09:10 America/New_York, Ryo Furue wrote:
> Hello all,
>
> I'm quite new to OpenDX. I've read (not all, but relevant parts of)
> the QuickStart and User's Guides, but I'm still struggling to try to
> find a solution to my problem.
>
> I want to visualize many, many 3D curves on the same screen
> (image) at the same time. I've found the following past email
> message in this list:
>
> To: [email protected]
> Subject: Re: [opendx-users] visualize 3D curve
> From: Chris Pelkie <[EMAIL PROTECTED]>
> Date: Sat, 31 May 2003 09:06:26 -0400
> In-Reply-To: <[EMAIL PROTECTED]>
>
> which showed how to draw a single 3D curve. My question is
> how to extend this idea to many curves (or if that's infeasible,
> what is an alternative method).
>
> To summarize the method shown in the past message:
>
> ####### BEGIN THE .DX FILE ###########################
> #positions component
> object "my_pos" class array type float rank 1 shape 3 \
> items 120 data follows
> x y z
> x y z
> ...
> #connections component (1-D line in 3-space)
> object "my_conn" class gridconnections counts 120
>
> #data component (optional)
> object "my_data" class array type float rank 0 \
> items 120 data follows
> d
> d
> ...
> attribute "dep" string "positions"
>
> #the field
> object "my_field" class field
> component "positions" value "my_pos"
> component "connections" value "my_conn"
> component "data" value "my_data
> ########### END THE .DX FILE #########################
>
> and visualize the this curve with "Import" -> "AutoColor"
> -> "ShowConnections" -> "Image".
>
> This works. But how can I extend this to hundreds or thousands of
> curves? (and I need to draw at least hundreds of curves on a single
> screen.)
>
> Sorry if this is so trivial, in which case I'd appreciate it very
> much if you could kindly tell me where to look.
>
> Thank you for your attention,
> Ryo
>
>
>
_______________________________
Chris Pelkie
Scientific Visualization Producer
622 Rhodes Hall, Cornell Theory Center
Ithaca, NY 14853