<div class="gmail_quote">On Fri, Oct 28, 2011 at 10:49 PM, Quang Tran <span dir="ltr"><<a href="mailto:quangt.itbk@gmail.com">quangt.itbk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font color="#333333"><font size="4"><font face="arial,helvetica,sans-serif">Hello everybody,</font></font></font><div><font color="#333333"><font size="4"><font face="arial,helvetica,sans-serif">I have had many googling search above "Hidden surface removal" but the results not fit with me.</font></font></font></div>
<div><font color="#333333"><font size="4"><font face="arial,helvetica,sans-serif">Now I want to use vtk library to extract only visible surface and return a vtkPolyData struct (I don't need render this new extracted suface).</font></font></font></div>
<div><font color="#333333" face="arial, helvetica, sans-serif" size="4">If use vtkModifiedBSPTree I can remove the hidden surface but this is in rendering step.</font></div><div><font color="#333333" face="arial, helvetica, sans-serif" size="4"><br>
</font></div><div><font color="#333333" face="arial, helvetica, sans-serif" size="4">Could anyone help me to have a solution by using vtk library to remove hidden surface and return a vtkPolyData struct.</font></div>
<div><font color="#333333" face="arial, helvetica, sans-serif" size="4"><br></font></div><div><font color="#333333" face="arial, helvetica, sans-serif" size="4">Thanks in advance.</font></div><div><font color="#333333" face="arial, helvetica, sans-serif" size="4"><br>
</font></div></blockquote><div><br></div><div>As long as the surfaces are disconnected, this should do it:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractOutsideSurface">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractOutsideSurface</a><br clear="all">
<br>David</div>