<br><blockquote>Hi,<br><br>I am really very sorry.. I missed that part.. :-) i thought that it would be statement <br>to write into the file. So i ignored that part..<br><br>Its working fine.. Thanks a lot.<br><br>Regards<br>Rakesh Patil<br>---------- Original message ----------<br>From:"David Doria"&lt; daviddoria+vtk@gmail.com &gt;<br>Date: 18 Aug 10 19:40:10<br>Subject: Re: Re: Re: [vtkusers] How to delete set of points..?<br>To: Rakesh Patil &lt;rakeshthp@in.com&gt;<br>Cc: VTK Mailing List &lt;vtkusers@vtk.org&gt;<br><br><div>On Wed, Aug 18, 2010 at 10:06 AM, Rakesh Patil <span dir="ltr">&lt;<a target=\"_blank\" target="_blank" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>&gt;</span> wrote:</div><div class="gmail_quote"><font color="#000000"></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#000000"><br><font color="#000000"></font></font><blockquote><font color="#000000"><font color="#000000">Hello sir,<br><br>As you said, i have used rubber band pick style to select multiple points.<br>I tried the example given by you.. But it gives me selected data..<br><br>Now actually scenario is that suppose there is a set of points, And i select half part<br>
of this and delete. So after deleting the half part, the graphics window must show <br>the other remaining half only.. <br><br>But here <br>
<br>
<br><span></span>extractSelection<span>-</span><span>&gt;</span>GetOutput<span>(</span><span>)</span><span><br></span>
<br>contains the selected data. This i already have. Any other work around?<span><br><br>Time being i have used<br></span><br><a target=\"_blank\" href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DeletePoint" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DeletePoint</a><br>
<span style="font-family: arial;">and this logic takes lot of time.</span><br><br>Thanks</font></font><div class="im"></div><font color="#000000"><font color="#000000"></font></font></blockquote><font color="#000000"></font></blockquote></div><br><div>Did you see this part at the bottom?</div><div><br></div><div><div>
//get points that are NOT in the selection</div><div>  selectionNode-&gt;GetProperties()-&gt;Set(vtkSelectionNode::INVERSE(), 1); //invert the selection</div><div>  extractSelection-&gt;Update();</div><div>  std::cout &lt;&lt; "There are " &lt;&lt; vtkDataSet::SafeDownCast (extractSelection-&gt;GetOutput())-&gt;GetNumberOfPoints()</div>
<div>    &lt;&lt; " points not in the selection." &lt;&lt; std::endl;</div><br>David</div>
</blockquote><br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>