[vtkusers] Visulazing values rather than coordinates

Arun Nagarajan arun at cis.jhu.edu
Wed Feb 26 11:34:52 EST 2003


John, this sounds about what I wanted. One another question though. How do the coordinates get incremented in VTK for the Structured Points dataset format? For a simple (3,3) grid how would the ordering look?

0,0,0
0,0,1
0,0,2
0,1,0
0,1,1
0,1,2
...?

Arun
----- Original Message ----- 
  From: anast.jm at pg.com 
  To: vtkusers at public.kitware.com 
  Sent: Wednesday, February 26, 2003 10:30 AM
  Subject: Re: [vtkusers] Visulazing values rather than coordinates



  Arun, 

  Your coordinates look structured, which is good. You can make a structured points dataset and render the volume with any of the vtk rendering options (texture mapping, raycasting etc.). Your 2D data would just be an image so have a look at vtkImageViewer. For volumes, have a look at SimpleRayCast.tcl in the Examples/VolumeRendering/  directory of vtk4. One warning, I think all of the rendering methods will not render float values so you may need to cast/scale to the appropriate type. Check the doxygen pages of the rendering method for specifics....john 



        Internet Mail Message 
        Received from host:           

       Arun Nagarajan <arun at cis.jhu.edu> 
                                Sent by: vtkusers-admin at public.kitware.com 
        02/26/2003 09:59 AM 
        Please respond to Arun Nagarajan 

               
                       To:        vtkusers at public.kitware.com 
                cc:        (bcc: John Anast-JM/PGI) 
                Subject:        [vtkusers] Visulazing values rather than coordinates 


  Hi all,

  I am not sure how exactly to visualize this input data I have at hand. I
  have looked through the sample files and have come up with nothing. as most
  of them deal with coordinates rather than the value at the coordinates. I
  have included a portion of the file. The format is
  [x y z]:  value_at_that_coordinate

  Any help suggestions as to what class to use to visualize this will be most
  appreciated. The data is currently in 2D, but there will be 3D data as well.

  Thanks,

  Arun
  ----------------------------
  small portion of the file:

  ...
  [36 0 0]:  34.6505
  [37 0 0]:  35.6041
  [38 0 0]:  36.5573
  [39 0 0]:  37.5103
  [40 0 0]:  38.4633
  [41 0 0]:  39.4166
  [42 0 0]:  40.3702
  [43 0 0]:  41.3245
  [44 0 0]:  42.2797
  [45 0 0]:  43.236
  [46 0 0]:  44.1938
  [47 0 0]:  45.1533
  [48 0 0]:  46.1148
  [49 0 0]:  47.0787
  [50 0 0]:  48.0453
  [51 0 0]:  49.015
  [52 0 0]:  49.9883
  [53 0 0]:  50.9655
  [54 0 0]:  51.9473
  [55 0 0]:  52.9341
  [56 0 0]:  53.9264
  [57 0 0]:  54.9247
  [58 0 0]:  55.9294
  [59 0 0]:  56.9411
  [60 0 0]:  57.9598
  [61 0 0]:  58.9858
  [62 0 0]:  60.0192
  [63 0 0]:  61.0597
  [64 0 0]:  62.1069
  [65 0 0]:  63.1605
  [66 0 0]:  64.2197
  [67 0 0]:  65.2836
  [68 0 0]:  66.3513
  [69 0 0]:  67.4218
  [70 0 0]:  68.4941
  [71 0 0]:  69.5672
  [72 0 0]:  70.6399
  [73 0 0]:  71.7115
  [74 0 0]:  72.7811
  [75 0 0]:  73.8479 
  [76 0 0]:  74.9115
  [77 0 0]:  75.9713
  [78 0 0]:  77.0269
  [79 0 0]:  78.0781
  [0 1 0]:  79.0708
  [1 1 0]:  0.114603
  [2 1 0]:  1.15337
  [3 1 0]:  2.18717
  [4 1 0]:  3.21614
  [5 1 0]:  4.24046
  [6 1 0]:  5.26034
  [7 1 0]:  6.276
  [8 1 0]:  7.28769
  [9 1 0]:  8.29565
  [10 1 0]:  9.30012
  [11 1 0]:  10.3013
  [12 1 0]:  11.2995
  [13 1 0]:  12.2949
  [14 1 0]:  13.2876
  [15 1 0]:  14.2779
  [16 1 0]:  15.2658
  [17 1 0]:  16.2516
  [18 1 0]:  17.2353
  [19 1 0]:  18.2171
  [20 1 0]:  19.1969
  [21 1 0]:  20.1749
  [22 1 0]:  21.1512
  [23 1 0]:  22.1257
  [24 1 0]:  23.0985
  [25 1 0]:  24.0696
  [26 1 0]:  25.0391
  [27 1 0]:  26.0071
  [28 1 0]:  26.9735
  [29 1 0]:  27.9384
  [30 1 0]:  28.9019
  [31 1 0]:  29.864
  [32 1 0]:  30.8248
  [33 1 0]:  31.7843
  [34 1 0]:  32.7426
  [35 1 0]:  33.6998
  [36 1 0]:  34.656
  [37 1 0]:  35.6112
  [38 1 0]:  36.5655
  [39 1 0]:  37.5192
  [40 1 0]:  38.4722
  [41 1 0]:  39.4248
  [42 1 0]:  40.3771
  [43 1 0]:  41.3294
  [44 1 0]:  42.2818
  [45 1 0]:  43.2346
  [46 1 0]:  44.188
  [47 1 0]:  45.1424
  [48 1 0]:  46.0982
  [49 1 0]:  47.0557
  [50 1 0]:  48.0154
  [51 1 0]:  48.9778
  [52 1 0]:  49.9433
  [53 1 0]:  50.9127
  [54 1 0]:  51.8865
  [55 1 0]:  52.8653
  [56 1 0]:  53.85
  [57 1 0]:  54.8411
  [58 1 0]:  55.8393
  [59 1 0]:  56.845
  [60 1 0]:  57.8588
  [61 1 0]:  58.881
  [62 1 0]:  59.9115
  [63 1 0]:  60.9504
  [64 1 0]:  61.9973
  [65 1 0]:  63.0516
  [66 1 0]:  64.1125
  [67 1 0]:  65.1791
  [68 1 0]:  66.2503
  [69 1 0]:  67.3249
  [70 1 0]:  68.4018
  [71 1 0]:  69.4795
  [72 1 0]:  70.5571
  [73 1 0]:  71.6334
  [74 1 0]:  72.7075
  [75 1 0]:  73.7786
  [76 1 0]:  74.8461
  [77 1 0]:  75.9094
  [78 1 0]:  76.9681
  [79 1 0]:  78.0219
  [0 2 0]:  79.0143
  [1 2 0]:  0.0602851
  [2 2 0]:  1.10073
  [3 2 0]:  2.13582
  [4 2 0]:  3.16572
  [5 2 0]:  4.19066
  [6 2 0]:  5.21091
  [7 2 0]:  6.22676
  [8 2 0]:  7.2385
  [9 2 0]:  8.24641
  [10 2 0]:  9.25081
  [11 2 0]:  10.252
  [12 2 0]:  11.2502
  [13 2 0]:  12.2457
  [14 2 0]:  13.2386
  [15 2 0]:  14.2293
  [16 2 0]:  15.2179
  [17 2 0]:  16.2046
  [18 2 0]:  17.1894
  [19 2 0]:  18.1724
  [20 2 0]:  19.1538
  [21 2 0]:  20.1337
  [22 2 0]:  21.1119
  [23 2 0]:  22.0887
  [24 2 0]:  23.0639
  [25 2 0]:  24.0377
  [26 2 0]:  25.01
  [27 2 0]:  25.9808
  [28 2 0]:  26.9501
  [29 2 0]:  27.918
  [30 2 0]:  28.8844
  [31 2 0]:  29.8494
  [32 2 0]:  30.813
  [33 2 0]:  31.775
  [34 2 0]:  32.7357
  [35 2 0]:  33.6949
  [36 2 0]:  34.6528
  [37 2 0]:  35.6093
  [38 2 0]:  36.5644
  [39 2 0]:  37.5183
  [40 2 0]:  38.4709
  [41 2 0]:  39.4225
  [42 2 0]:  40.3731
  [43 2 0]:  41.3229
  [44 2 0]:  42.272
  [45 2 0]:  43.2207
  [46 2 0]:  44.1694
  [47 2 0]:  45.1183
  [48 2 0]:  46.0677
  [49 2 0]:  47.0183
  [50 2 0]:  47.9705
  [51 2 0]:  48.9248
  [52 2 0]:  49.882
  [53 2 0]:  50.8427
  [54 2 0]:  51.8078
  [55 2 0]:  52.7781
  [56 2 0]:  53.7545
  [57 2 0]:  54.7378
  [58 2 0]:  55.7288
  [59 2 0]:  56.7283
  [60 2 0]:  57.7369
  [61 2 0]:  58.755
  [62 2 0]:  59.7829
  [63 2 0]:  60.8205
  [64 2 0]:  61.8676
  [65 2 0]:  62.9236
  [66 2 0]:  63.9875
  [67 2 0]:  65.0582
  [68 2 0]:  66.1344 
  [69 2 0]:  67.2147
  [70 2 0]:  68.2975
  [71 2 0]:  69.3815
  [72 2 0]:  70.4653
  [73 2 0]:  71.5476
  [74 2 0]:  72.6274
  ...

  _______________________________________________
  This is the private VTK discussion list. 
  Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
  Follow this link to subscribe/unsubscribe:
  http://public.kitware.com/mailman/listinfo/vtkusers


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20030226/e270ea22/attachment.htm>


More information about the vtkusers mailing list