[vtkusers] Visualising data on a uniform grid

Steven Kenny S.D.Kenny at lboro.ac.uk
Wed Oct 17 04:47:17 EDT 2007


I have some data that I am reading in that exists on a uniform grid.  
This is being assigned to type vtkPoints at the moment. It consists  
of three distinct parts

points - the x, y and z coordinate of the point
vector - a three component vector associated with each point
scalar - a scalar value associated with each point

I would like to display the data with the colour at a point in space  
determined by the three component vector, with its values being used  
as the RGB components for the colour at that point and with the  
scalar determining whether a particular point is visible or not. This  
could either be via a hard cutoff, i.e. if scalar is less than x then  
point is invisible or by applying a function to the determine an  
alpha value.

I am unsure what is the best route to achieve this. Does anyone have  
any suggestions.

Thanks,

Steven Kenny



More information about the vtkusers mailing list