[vtk-developers] handling the data in vtkStrPtsReader

Jinyoung Hwang hwangjinyoung at gmail.com
Fri Dec 18 03:20:15 EST 2009


Hi all,

The volume data (vtk file, size of 256x256x256) was loaded using
vtkStructuredPointsReader.
I then rendered using ray casting class.

Here, how can I handle the data in vtkStructuredPointsReader class.
What I want to do is to remove specific location, where could be defined by
user, in volume data.
For example, if I want to remove (30,30,30) coordinate in data, what is the
method to access the coordinate.

below is my codes.
----
pvtkStrPtsReader = vtkStructuredPointsReader::New();
pvtkVolRayCM->SetInputConnection(pvtkStrPtsReader->GetOutputPort());
pvtkVolRayCM->SetVolumeRayCastFunction(pvtkVolRayCF);
pvtkVol->SetMapper(pvtkVolRayCM);
pvtkVolProp->SetInterpolationTypeToLinear();
pvtkVolProp->ShadeOn();
pvtkVol->SetProperty(pvtkVolProp);
pvtkVol->SetUserTransform(transform);
pvtkRenderer->AddActor(pvtkVol);
---



thanks in advance.

JY
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20091218/04064f75/attachment.html>


More information about the vtk-developers mailing list