You can make a new image data with the same extent and then shallow copy the cell/point arrays into into it. However, since imagedata is geometrically regular and the rectilinear grid usually isn't, you will loose spacial variation. If that matters in this case, try converting to an unstructured grid (one quick way is to threshold and include the entire array range) and volume render that. Memory usage will increase substantially since the unstructured grid needs to store the topology and geometry now, but at least you won't be changing the problem domain.<div>
<div><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 3:33 AM, Kevin Lin <span dir="ltr"><<a href="mailto:cqqlin@gmail.com">cqqlin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Greetings, everyone.<br><br>Currently I've got a vtkRectilinearGrid with scalars to represent temperature data of a room,<br><br>And now I wish to use Volume Rendering to show the data, But it seems I can only use ImageData or StructuredPoints to Volume Render,<br>
<br>Can I use some filters to transform the vtkRectilinearGrid to vtkImageData?<br><br>Many Thanks in advance:)<br clear="all"><br>------------- <br>Sincerely<br><br>Kevin Lin<br><br>2011-06-16<br><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div></div>