<DIV>Hi, how are you!</DIV>
<DIV>&nbsp;</DIV>
<DIV>I used vtkPointPicker to pick points on the surface and used vtkglyph3D to store the picked point. However, after I picked 10-20 point, all the object on the render window disappeared. </DIV>
<DIV>&nbsp;</DIV>
<DIV>My&nbsp;snippet:</DIV>
<DIV>&nbsp;<BR>&nbsp;&nbsp;if(this-&gt;pt_empty==0){<BR>&nbsp;&nbsp;&nbsp;pt_ID=sel_pt-&gt;InsertNextPoint(x);<BR>&nbsp;&nbsp;&nbsp;sel_pd-&gt;SetPoints(sel_pt);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;ptglyph-&gt;SetInput(sel_pd);<BR>&nbsp;&nbsp;&nbsp;ptglyph-&gt;SetSource(sel_sphere-&gt;GetOutput());<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;ptglyphMapper-&gt;SetInput(ptglyph-&gt;GetOutput());<BR>&nbsp;&nbsp;&nbsp;ptglyphMapper-&gt;ScalarVisibilityOff();<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;ptglyphActor-&gt;SetMapper(ptglyphMapper);<BR>&nbsp;&nbsp;&nbsp;ptglyphActor-&gt;GetProperty()-&gt;SetDiffuseColor(1, 0.0, 0.0);</DIV>
<DIV>&nbsp;&nbsp;&nbsp;this-&gt;pt_empty=1;<BR>&nbsp;&nbsp;}else{<BR>&nbsp;&nbsp;&nbsp;pt_ID=sel_pt-&gt;InsertNextPoint(x);<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;ptglyph-&gt;Modified();<BR>&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;}</DIV>
<DIV>&nbsp;&nbsp;this-&gt;renWin-&gt;Render();</DIV>
<DIV>&nbsp;</DIV>
<DIV>Did I do something wrong?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Luke</DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://us.rd.yahoo.com/mailtag_us/*http://antispam.yahoo.com/tools?tool=1">Yahoo! Mail SpamGuard</a> - Read only the mail you want.</a>