[vtkusers] Modifying the vtkDataSet Object

David Doria daviddoria+vtk at gmail.com
Tue Dec 15 19:06:17 EST 2009


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



More information about the vtkusers mailing list