Hi,<br><br>I&#39;ve a vtk file of type RECTILINEAR_GRID and I would like to create 3 planes, each for a type of coordinate (xx, yy and zz) but I don&#39;t know how to do it. One plane must be parallel to the XX coordinate at the value 10, another must be parallel to the YY coordinate at the value 25 and the third must be in ZZ coordinate at the value 3.<br>
<br>Because the vtk file is a DATASET RECTILINEAR_GRID, I think that the only way to load this file is using the vtkRectilinearGridReader object. But from this object I don&#39;t know how to create the 3 planes. I really need to set the origin values from each plane.<br>
<br>How can I do that?<br><br>I&#39;m programming in TCL.<br><br>Here&#39;s the code:<br><br>VTK code<br clear="all">[code]<br># vtk DataFile Version 1.0<br>Temperatures at mid-athmosphere<br>ASCII<br>DATASET RECTILINEAR_GRID<br>
DIMENSIONS 90 60 5<br>X_COORDINATES 90 float<br>-45 -44 -43 -42 -41 -40 -39 -38 -37 -36 -35 -34 -33 -32 -31<br>-30 -29 -28 -27 -26 -25 -24 -23 -22 -21 -20 -19 -18 -17 -16<br>-15 -14 -13 -12 -11 -10  -9  -8  -7  -6  -5  -4  -3  -2  -1<br>
  0   1   2   3   4   5   6   7   8   9  10  11  12  13  14<br> 15  16  17  18  19  20  21  22  23  24  25  26  27  28  29<br> 30  31  32  33  34  35  36  37  38  39  40  41  42  43  44<br>Y_COORDINATES 60 float<br>20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49<br>
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79<br>Z_COORDINATES 5 float<br>1 21 41 61 81<br><br>POINT_DATA 27000<br>SCALARS Temperature float<br>LOOKUP_TABLE default<br>(...)<br>
[/code]<br><br>TCL code:<br>[code]<br>package require vtk<br><br>package require vtkinteraction<br><br># Creation of the window<br>vtkRenderer ren1<br>vtkRenderWindow renWin<br>    renWin AddRenderer ren1<br><br>vtkRenderWindowInteractor iren<br>
    iren SetRenderWindow renWin<br>    <br>vtkRectilinearGridReader reader <br>    reader SetFileName &quot;dados_meteo_T_rg.vtk&quot; <br>    reader Update <br><br>vtkRectilinearGridOutlineFilter plane1<br>    plane1 SetInput [reader GetOutput]<br>
<br>vtkPolyDataMapper planeMapper<br>    planeMapper SetInput [plane1 GetOutput]<br><br>vtkActor outlineActor<br>    outlineActor SetMapper planeMapper<br>    eval [outlineActor GetProperty] SetColor 0 0 0<br>    <br><br>
ren1 AddActor outlineActor<br>ren1 SetBackground 1 1 1<br><br>iren Initialize<br><br>renWin SetSize 500 500<br>renWin Render<br><br>[/code]<br><br>Thanks,<br>-- <br>xeon<br>