[vtkusers] Render only data that we need!!!

Amy Squillacote amy.squillacote at kitware.com
Tue Apr 12 10:29:35 EDT 2005


Use the second option you listed.  You should use the SetDataVOI method you 
mentioned (indicated by vtkSetVector6Macro(DataVOI, int)).  This method 
lets you specify a minimum and maximum value in X, Y, and Z that enclose 
your volume of interest (VOI).

The first option you listed (vtkPiecewiseFunction::removePoints(254); ) 
will change the colors used in rendering your data, but it will not cause 
only the desired portion of the data to be rendered.

- Amy

At 10:18 AM 4/12/2005, verena kinder wrote:
>Hello!
>
>We want to render a segmented volume data set, but for example only data 
>with scalar value off 255.
>
>We find two starting points:
>
>1. vtkPiecewiseFunction::removePoints(254);
>or
>2. only read in data that we need, we use the PNMReader();
>
>For the first point a problem appears while rendring the data. We get a 
>black box, so we propose that all data we have remove with the function 
>are assigned by 0.
>
>For the second point we even don't know the starting point, is there a 
>function in the class PNMReader or in that superclasses we could use? What 
>about the vtkSetVector6Macro(DataVOI,int)?
>
>Or is there another possibility?
>
>Thanks
>
>
>Verena
>______________________________________________________________
>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
>http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list