Thread View: comp.graphics.explorer
2 messages
2 total messages
Started by Scott Ferguson
Wed, 18 Nov 1992 14:41
DataScribe Scalar->Vector problem
Author: Scott Ferguson
Date: Wed, 18 Nov 1992 14:41
Date: Wed, 18 Nov 1992 14:41
20 lines
1347 bytes
1347 bytes
In dscribe, let's say you'd like to read in a 3D lattice from a plain file with no header. Therefore, you'd like to enter xdim, ydim, and zdim from parameters. Next, you need to pass xdim, etc into the dims of the output lattice. Problem is, the parameters are three scalars, and the dims is an array. I tried making subregions of the dims array (from 1 to 1, 2 to 2, 3 to 3), but dscribe treats them as arrays even though there's only one component. Is there a way around this? Is this fixed somehow in Explorer 2? When is Explorer 2 due out? Thanks a lot. -- ---------------------------------------------------------------------- Scott Ferguson Exxon Research & Engineering Co. Project Engineer New Jersey ---------------------------------------------------------------------- "Always bark at a dog."
Re: DataScribe Scalar->Vector problem
Author: Wizard of OZ
Date: Wed, 18 Nov 1992 19:37
Date: Wed, 18 Nov 1992 19:37
52 lines
2271 bytes
2271 bytes
In article <1992Nov18.144114.17970@erenj.com>, srfergu@rufus.erenj.com (Scott Ferguson) writes:
|> From: srfergu@rufus.erenj.com (Scott Ferguson)
|> Subject: DataScribe Scalar->Vector problem
|> In dscribe, let's say you'd like to read in a 3D lattice from a plain
|> file with no header. Therefore, you'd like to enter xdim, ydim, and zdim
|> from parameters.
|>
|> Next, you need to pass xdim, etc into the dims of the output lattice.
|> Problem is, the parameters are three scalars, and the dims is an array.
|> I tried making subregions of the dims array (from 1 to 1, 2 to 2, 3 to 3),
|> but dscribe treats them as arrays even though there's only one component.
There are a couple ways to do this.
Bring up a Constants template and put a set in it. Put 3 longs in it
and give the initial values to be the parameter variables. Then connect the
set to the dims array.
Like:
Parameter
Long 1 | xdim
Long 2 | ydim
Long 3 | zdim
Constants
Set
Long 4 | dumx | xdim
Long 5 | dumy | ydim
Long 6 | dumz | zdim
where {x,y,z}dim are the parameters
-----
Or you can go to the dims array and make fragments and wire to them
And ignore the warning msg at Parse time about scalar connected to Array.
|> --
|> ----------------------------------------------------------------------
|> Scott Ferguson Exxon Research & Engineering Co.
|> Project Engineer New Jersey
|> ----------------------------------------------------------------------
|> "Always bark at a dog."
--
Gary Griffin I just hope I'm still dreamin'
gary@sgi.com 'cause if this is for real
I'm gonna get very depressed
Think WORLDWIDE
Howard T Duck
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads