[vtkusers] using vtkPointPicker to retrieve the scalar attribute

Sugeng Waluyo sugengwalj at googlemail.com
Mon Jan 1 07:47:45 EST 2007


try Polydata->GetPointData()->GetScalars()->GetTuple(id)

best regards,
sugeng


On 1/1/07, Xiaobin Wang <xiaobin2006 at gmail.com> wrote:
>
> Hi ,all
>  Happy New Year!
>  I want to use vtkPointPicker to pick out the requested scalars attached
> to  a  PolyData  dataset.
>  First, the method GetPointId() in  vtkPointPicker returns the point Id of
> the picked one (through the
>  mouse) ;Second, Polydata->GetPointData()->GetTuple(id). However , I
> cannot get the correct data.
>  It seems the GetTuple() method is obsolete .
>
>  Anybody can help ?
>  Any idea will be greatly appreciated .
>
>
> _______________________________________________
> 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
>
>
>


-- 
sing enom ngormati sing tua, sing tua nyontoni sing bener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070101/9af381c6/attachment.htm>


More information about the vtkusers mailing list