[vtkusers] Modifying the vtkDataSet Object

Jérôme jerome.velut at gmail.com
Wed Dec 16 04:11:57 EST 2009


Hi,
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).

HTH
Jerome

2009/12/16 David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
>

> On Tue, Dec 15, 2009 at 6:54 PM, Naveen <a1naveen at gmail.com> wrote:
> > Hi,
> >
> > I am having some trouble modifying vtkDataSet object and would like to
> know
> > how to proceed with the task. I have an object of vtkDataset having 97665
> > POINT_DATA values (2D) and the dimensions as (384, 256). Now we want to
> > convert this into 3D, so i have to add an additional Z coordinate to it.
> In
> > order to do that, I want to add atleast 1 more layer on Z axis i.e add
> > 384*256 more POINT_DATA values to the existing vtkDataSet object. How can
> I
> > do this modification?
> >
> > Thank you,
> > Naveen
>
> Why are you using a vtkDataSet? Why don't you use one of the
> subclasses of vtkPointSet, like vtkPolyData?
>
> Here is the class hierarchy:
> http://www.vtk.org/doc/nightly/html/classvtkDataSet.html
>
> I guess I don't follow what you are trying to do..?
>
> Thanks,
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091216/9a02f5bc/attachment.htm>


More information about the vtkusers mailing list