Hi,<br>if your data are 2D grids, such as images, you can try to convert your DataSet into ImageData and then pass them through vtkImageAppend by setting the AppendAxis to 2 (z-axis).<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">
2009/12/16 David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, Dec 15, 2009 at 6:54 PM, Naveen &lt;<a href="mailto:a1naveen@gmail.com">a1naveen@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am having some trouble modifying vtkDataSet object and would like to know<br>
&gt; how to proceed with the task. I have an object of vtkDataset having 97665<br>
&gt; POINT_DATA values (2D) and the dimensions as (384, 256). Now we want to<br>
&gt; convert this into 3D, so i have to add an additional Z coordinate to it. In<br>
&gt; order to do that, I want to add atleast 1 more layer on Z axis i.e add<br>
&gt; 384*256 more POINT_DATA values to the existing vtkDataSet object. How can I<br>
&gt; do this modification?<br>
&gt;<br>
&gt; Thank you,<br>
&gt; Naveen<br>
<br>
</div></div>Why are you using a vtkDataSet? Why don&#39;t you use one of the<br>
subclasses of vtkPointSet, like vtkPolyData?<br>
<br>
Here is the class hierarchy:<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkDataSet.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkDataSet.html</a><br>
<br>
I guess I don&#39;t follow what you are trying to do..?<br>
<div><div></div><div class="h5"><br>
Thanks,<br>
<br>
David<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>
</div></div></blockquote></div><br>