[vtkusers] Getting an x,y,z point from a vtkDataSet
Charl P. Botha
c.p.botha at ewi.tudelft.nl
Fri Jul 18 03:20:49 EDT 2003
On Fri, Jul 18, 2003 at 08:43:30AM +0200, Nico Vermaas wrote:
> I have vtkImageData and I try to get the value of a point that I picked. I have the X,Y,Z, but how do I get the value of that point?
> Is there something like vtkImageData->GetScalar(x,y,z)?
There are many ways to get to his data. One particularly easy (but not the
fastest) way is to use GetScalarComponentAsFloat(). Please check the
documentation for vtkImageData.
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the vtkusers