<div class="gmail_quote">On Wed, Jul 27, 2011 at 9:28 AM, Huang, Ming-Ern (MU-Student) <span dir="ltr"><<a href="mailto:mhuang@mail.mizzou.edu" target="_blank">mhuang@mail.mizzou.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">







<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">
<p>Is there an easy way to delete points from a mesh.  I read data from PLY file format. 
</p>
<p>I just want to get rid of the faces that use the point.  The current way I'm using is reading the file that's
</p>
<p>in PLY format into a vertices array and a faces array</p>
<p> </p>
<p>and then using pointpicker to pick the point.  And then getting the point.</p>
<p>Then I try to find which point on the mesh was picked.</p>
<p>Then I try to eliminate all the faces that use that point.</p>
<p>Then rewrite the PLY file.</p>
<p>Then read the PLY file back into vtkPLYReader.</p>
<p> </p>
<p>This seems way too much effort.  </p>
<p> </p>
<p>Is there a library I can use that will do this for me?</p></div></div></blockquote><div><br></div>This doesn't have anything to do with the PLY format. Once you use the vtkPLYReader, you now have a vtkPolyData and the question becomes how to do these operations on a vtkPolyData.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">You can use a functionality of vtkExtractSelection for this purpose:</div><div class="gmail_quote"><br></div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints</a></div>
<div class="gmail_quote"><br><div>David</div></div>