<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Jul 2, 2014 at 10:15 AM, Meysam Torabi <span dir="ltr"><<a href="mailto:meysam.torabi@gmail.com" target="_blank">meysam.torabi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Is there a class in vtk to extract a shell (external boundary) from some unorganized points? The attached image explains the problem.</div>
<div><div><br></div><div>Thanks,</div><div>
Meysam</div></div><div><br></div><div><br></div><div><div><img src="cid:ii_hx4q6a9d1_146f76cb4488ec08" height="227.02786624203821" width="531"><br></div><br></div></div>
<br></blockquote><div><br><div>I don't believe there is anything like this built into VTK, but I
wrote some code for this as part of a project one time. You can read
about the technique here:<br><br><a href="https://github.com/daviddoria/BoundingPolygon/blob/master/VTKJournal/BoundingPolygon.pdf">https://github.com/daviddoria/BoundingPolygon/blob/master/VTKJournal/BoundingPolygon.pdf</a> (click "view raw" to download)<br>
<br>And the code is here:<br><a href="https://github.com/daviddoria/BoundingPolygon/blob/master/FindBoundaryPoints.cxx">https://github.com/daviddoria/BoundingPolygon/blob/master/FindBoundaryPoints.cxx</a><br><br></div>(the root of the repository is <a href="https://github.com/daviddoria/BoundingPolygon">https://github.com/daviddoria/BoundingPolygon</a>)<br>
<br>Good luck,<br><div><br>David</div></div></div></div></div>