<div>On Wed, Aug 18, 2010 at 10:06 AM, Rakesh Patil <span dir="ltr"><<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<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><span></span>extractSelection<span>-</span><span>></span>GetOutput<span>(</span><span>)</span><span><br></span></pre>
<br>contains the selected data. This i already have. Any other work around?<span><br><br>Time being i have used<br></span><pre><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DeletePoint" target="_blank">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<div class="im"></div></blockquote></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->GetProperties()->Set(vtkSelectionNode::INVERSE(), 1); //invert the selection</div><div> extractSelection->Update();</div><div> std::cout << "There are " << vtkDataSet::SafeDownCast (extractSelection->GetOutput())->GetNumberOfPoints()</div>
<div> << " points not in the selection." << std::endl;</div><br>David</div>