<DIV>Hi, how are you!</DIV>
<DIV> </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> </DIV>
<DIV>My snippet:</DIV>
<DIV> <BR> if(this->pt_empty==0){<BR> pt_ID=sel_pt->InsertNextPoint(x);<BR> sel_pd->SetPoints(sel_pt);<BR> <BR> ptglyph->SetInput(sel_pd);<BR> ptglyph->SetSource(sel_sphere->GetOutput());<BR> <BR> ptglyphMapper->SetInput(ptglyph->GetOutput());<BR> ptglyphMapper->ScalarVisibilityOff();<BR> <BR> ptglyphActor->SetMapper(ptglyphMapper);<BR> ptglyphActor->GetProperty()->SetDiffuseColor(1, 0.0, 0.0);</DIV>
<DIV> this->pt_empty=1;<BR> }else{<BR> pt_ID=sel_pt->InsertNextPoint(x);<BR> <BR> ptglyph->Modified();<BR> <BR> }</DIV>
<DIV> this->renWin->Render();</DIV>
<DIV> </DIV>
<DIV>Did I do something wrong?</DIV>
<DIV> </DIV>
<DIV> 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>