<br><blockquote>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>
<pre class="de1"><span class="br0"></span>extractSelection<span class="sy2">-</span><span class="sy1">&gt;</span>GetOutput<span class="br0">(</span><span class="br0">)</span><span class="br0"><br></span></pre>
<br>contains the selected data. This i already have. Any other work around?<span class="br0"><br><br>Time being i have used<br></span><pre><a target=\"_blank\" href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DeletePoint">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DeletePoint</a><br></pre><span style="font-family: arial;">and this logic takes lot of time.</span><br><br>Thanks<br><br>---------- Original message ----------<br>From:"David Doria"&lt; daviddoria+vtk@gmail.com &gt;<br>Date: 18 Aug 10 17:13:49<br>Subject: 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>On Tue, Aug 17, 2010 at 11:55 PM, Rakesh Patil &lt;rakeshthp@in.com&gt; wrote:<br>&gt;<br>&gt; Hello Sir,<br>&gt;<br>&gt; If I use that logic, then i feel it will take lot of time.<br>&gt;<br>&gt; Two loops will come into picture.. First loop contains IDs of points which<br>&gt; are to be deleted<br>&gt; and se
 cond loop is the one which is in the code..<br>&gt;<br>&gt; So for each time, it will iterate n times for a single point ( where n is<br>&gt; the total number of points)<br>&gt; thus If i want to delete m points then the code has to run m*n times ..<br>&gt;<br>&gt; If n is in thousands (say more than 10000 or 30000) then i feel this is not<br>&gt; an efficient one.<br>&gt;<br>&gt; Can it be done using vtkCutter or vtkClipPolyData or something..??<br>&gt;<br>&gt; Thanks<br>&gt;<br>&gt; Regards<br>&gt; Rakesh Patil<br><br>If you have the list of IDs you want to delete (from the rubber band),<br>you can load them into a vtkSelection and then use:<br><br>http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelection<br><br>Thanks,<br><br>David<br></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; te
 xt-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>