<div dir="ltr"><div>The winding of the triangles in the filled holes is wrong. Add<br> vtkSmartPointer<vtkPolyDataNormals> normals =<br> vtkSmartPointer<vtkPolyDataNormals>::New();<br> normals->SetInputConnection(fillHolesFilter->GetOutputPort());<br>
normals->ConsistencyOn();<br> normals->SplittingOff();<br> normals->Update();<br></div> And save the output of normals.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 2:26 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Perhaps the filled holes have triangles ordered in the wrong direction.<br></div><div class="gmail_extra">
<div><div class="h5"><br><br><div class="gmail_quote">On Sat, Aug 3, 2013 at 10:54 AM, andyjk <span dir="ltr"><<a href="mailto:andrewkeeling@hotmail.com" target="_blank">andrewkeeling@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You are right Bill, it works correctly when I load the filledHoles stl back<br>
using vtk.<br>
<br>
It's strange that Meshlab shows the unfilled model, despite whether I use<br>
vtkSTLWriter or vtkPLYWriter.<br>
<br>
Is there some quirk of these file formats or something ? I need a watertight<br>
mesh but am not sure whether my mesh is watertight outside of VTK ?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Can-t-save-after-fillHoles-filter-tp5722435p5722444.html" target="_blank">http://vtk.1045678.n5.nabble.com/Can-t-save-after-fillHoles-filter-tp5722435p5722444.html</a><br>
<div><div>Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div class="im">-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div></div>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>