[vtkusers] Getting an x,y,z point from a vtkDataSet

R K Shyamprakash ramakrishna.prakash at quest-global.com
Fri Jul 18 03:59:07 EDT 2003


following should do the trick. code is in java

Get the picked point id.

vtkImageData.GetPointData().GetScalars().GetComponent(pointId,0);//assuming
you have only one
component

regards
Shyam

-----Original Message-----
From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org]On Behalf Of
Nico Vermaas
Sent: Friday, July 18, 2003 12:14 PM
To: vtkusers at vtk.org
Subject: [vtkusers] Getting an x,y,z point from a vtkDataSet


Hi,

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)?

Nico

====================================================
Nico Vermaas
ASTRON - Westerbork Synthesis Radio Telescope
Schattenberg 1 - 9433 TA Zwiggelte - The Netherlands

tel: +31 593 598710
vermaas at astron.nl
====================================================
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list