<DIV>Use the GetPointId function to get Pointid of the picked point</DIV>  <DIV>&nbsp;</DIV>  <DIV>Use to pointId to get Scalar value. U can use the </DIV>  <DIV>&nbsp;</DIV>  <DIV><BR><BR><B><I>Prathap M Nair &lt;prathap.nair@elec.qmul.ac.uk&gt;</I></B> wrote:</DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="MSHTML 6.00.2900.2769" name=GENERATOR>  <STYLE></STYLE>    <DIV><FONT face=Arial size=2>Hi,</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>I am trying to retrieve the scalar values associated with&nbsp;picked points in my polydata object. I use PointPicker to pick the points and have a class "CallBack1" associated with the picker as Observer to the EndPickEvent. I have used the class before and everything works fine to get the picked coordinates, but I have trouble now accessing the scalar array within the class.</FONT></DIV>  <DIV><FONT face=Arial
 size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Extract of the callback class:</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2><EM>void CMyCallback1:: Execute(vtkObject *caller, unsigned long, void*)<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp; vtkWin32RenderWindowInteractor *iren = reinterpret_cast&lt;vtkWin32RenderWindowInteractor*&gt;(caller);<BR>&nbsp;&nbsp;&nbsp;&nbsp; vtkPointPicker *picker = (vtkPointPicker *)iren-&gt;GetPicker();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>&nbsp;vtkDoubleArray *shapeind1 = (vtkDoubleArray *) picker-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Shape_Index");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vtkDoubleArray *curvind1 =&nbsp; (vtkDoubleArray *) picker-&gt;GetActor()-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Curve_Index");<BR></STRONG>&nbsp;&nbsp;&nbsp; &nbsp;if (picker-&gt;GetPointId() != -1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{</EM></FONT></DIV> 
 <DIV><FONT face=Arial size=2><EM>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<STRONG> ..........</STRONG><BR>&nbsp;&nbsp;&nbsp;&nbsp;</EM></FONT><FONT face=Arial size=2><EM>&nbsp;}<BR>}</EM></FONT></DIV>  <DIV><EM><FONT face=Arial size=2></FONT></EM>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>If I use "picker-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Shape_Index");",&nbsp;I get the following error while compiling,</FONT></DIV>  <DIV><FONT face=Arial size=2><EM>error C2039: 'GetInput' : is not a member of 'vtkAbstractMapper3D'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c:\vtk\vtk42\rendering\vtkabstractmapper3d.h(40) : see declaration of 'vtkAbstractMapper3D'</EM></FONT></DIV>  <DIV><EM><FONT face=Arial size=2></FONT></EM>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>If I use "picker-&gt;GetActor()-&gt;GetMapper()-&gt;GetInput()-&gt;GetPointData()-&gt;GetArray("Curve_Index");",&nbsp;I get unhandled exception errors.</FONT></DIV>  <DIV><FONT face=Arial
 size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Is there any other way of getting the associated scalar value or getting the pointer to the polydata?</FONT></DIV>  <DIV><FONT face=Arial size=2>Any help/suggestion&nbsp;would be&nbsp;appreciated.</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Thanks in Advance.</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Regards,</FONT></DIV>  <DIV><FONT face=Arial size=2>Prathap</FONT></DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>---------------------------------------------------------</FONT></DIV>  <DIV>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Prathap M Nair</FONT></DIV>  <DIV>&nbsp;</DIV>  <DIV><FONT face=Arial size=2>Research Student<BR>Multimedia and Vision Lab<BR>Queen Mary, University of London<BR>Mile End Road, London E1 4NS (UK)</FONT></DIV> 
 <DIV>&nbsp;</DIV>  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>_______________________________________________<BR>This is the private VTK discussion list. <BR>Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR></BLOCKQUOTE>  <DIV><BR></DIV><p>
                <hr size=1> <B>Yahoo! Personals</B><BR> 
Single? There's someone we'd like you to meet.<BR> 
Lots of someones, actually. <a href="http://us.rd.yahoo.com/evt=36108/*http://personals.yahoo.com 
">Yahoo! Personals</a>