<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">></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"< daviddoria+vtk@gmail.com ><br>Date: 18 Aug 10 17:13:49<br>Subject: Re: Re: [vtkusers] How to delete set of points..?<br>To: Rakesh Patil <rakeshthp@in.com><br>Cc: VTK Mailing List <vtkusers@vtk.org><br><br>On Tue, Aug 17, 2010 at 11:55 PM, Rakesh Patil <rakeshthp@in.com> wrote:<br>><br>> Hello Sir,<br>><br>> If I use that logic, then i feel it will take lot of time.<br>><br>> Two loops will come into picture.. First loop contains IDs of points which<br>> are to be deleted<br>> and se
cond loop is the one which is in the code..<br>><br>> So for each time, it will iterate n times for a single point ( where n is<br>> the total number of points)<br>> thus If i want to delete m points then the code has to run m*n times ..<br>><br>> If n is in thousands (say more than 10000 or 30000) then i feel this is not<br>> an efficient one.<br>><br>> Can it be done using vtkCutter or vtkClipPolyData or something..??<br>><br>> Thanks<br>><br>> Regards<br>> 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>