home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / graphics / explorer / 331 < prev    next >
Encoding:
Internet Message Format  |  1992-11-18  |  2.2 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!sgigate!sgi!fido!enigma.esd.sgi.com!gary
  2. From: gary@enigma.esd.sgi.com (Wizard of OZ)
  3. Newsgroups: comp.graphics.explorer
  4. Subject: Re: DataScribe Scalar->Vector problem
  5. Date: 18 Nov 1992 19:37:51 GMT
  6. Organization: Silicon Graphics Computer Systems, Mountain View, CA
  7. Lines: 52
  8. Distribution: world
  9. Message-ID: <1ee62fINN14q@fido.asd.sgi.com>
  10. References: <1992Nov18.144114.17970@erenj.com>
  11. Reply-To: gary@sgi.com
  12. NNTP-Posting-Host: enigma.esd.sgi.com
  13.  
  14. In article <1992Nov18.144114.17970@erenj.com>, srfergu@rufus.erenj.com (Scott Ferguson) writes:
  15. |> From: srfergu@rufus.erenj.com (Scott Ferguson)
  16. |> Subject: DataScribe Scalar->Vector problem
  17.  
  18. |> In dscribe, let's say you'd like to read in a 3D lattice from a plain
  19. |> file with no header. Therefore, you'd like to enter xdim, ydim, and zdim
  20. |> from parameters.
  21. |> 
  22. |> Next, you need to pass xdim, etc into the dims of the output lattice. 
  23. |> Problem is, the parameters are three scalars, and the dims is an array.
  24. |> I tried making subregions of the dims array (from 1 to 1, 2 to 2, 3 to 3),
  25. |> but dscribe treats them as arrays even though there's only one component.
  26.  
  27. There are a couple ways to do this. 
  28.  
  29. Bring up a Constants template and put a set in it. Put 3 longs in it
  30. and give the initial values to be the parameter variables. Then connect the
  31. set to the dims array.
  32.  
  33. Like:
  34.  
  35.   Parameter
  36.     Long 1    | xdim
  37.     Long 2 | ydim
  38.     Long 3 | zdim
  39.  
  40.   Constants
  41.     Set
  42.       Long 4   | dumx  | xdim
  43.       Long 5  | dumy  | ydim
  44.       Long 6  | dumz  | zdim
  45.  
  46. where {x,y,z}dim are the parameters 
  47. -----
  48.  
  49. Or you can go to the dims array and make fragments and wire to them
  50. And ignore the warning msg at Parse time about scalar connected to Array.
  51.  
  52. |> -- 
  53. |> ----------------------------------------------------------------------
  54. |> Scott Ferguson                        Exxon Research & Engineering Co.
  55. |> Project Engineer                      New Jersey
  56. |> ----------------------------------------------------------------------
  57. |> "Always bark at a dog."
  58.  
  59. -- 
  60.  
  61. Gary Griffin            I just hope I'm still dreamin'
  62. gary@sgi.com            'cause if this is for real
  63.                 I'm gonna get very depressed
  64. Think WORLDWIDE        
  65.                         Howard T Duck
  66.