home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!fido!enigma.esd.sgi.com!gary
- From: gary@enigma.esd.sgi.com (Wizard of OZ)
- Newsgroups: comp.graphics.explorer
- Subject: Re: DataScribe Scalar->Vector problem
- Date: 18 Nov 1992 19:37:51 GMT
- Organization: Silicon Graphics Computer Systems, Mountain View, CA
- Lines: 52
- Distribution: world
- Message-ID: <1ee62fINN14q@fido.asd.sgi.com>
- References: <1992Nov18.144114.17970@erenj.com>
- Reply-To: gary@sgi.com
- NNTP-Posting-Host: enigma.esd.sgi.com
-
- 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
-