[vtkusers] Can't save after fillHoles filter

Bill Lorensen bill.lorensen at gmail.com
Sat Aug 3 14:47:55 EDT 2013


The winding of the triangles in the filled holes is wrong. Add
  vtkSmartPointer<vtkPolyDataNormals> normals =
    vtkSmartPointer<vtkPolyDataNormals>::New();
  normals->SetInputConnection(fillHolesFilter->GetOutputPort());
  normals->ConsistencyOn();
  normals->SplittingOff();
  normals->Update();
 And save the output of normals.



On Sat, Aug 3, 2013 at 2:26 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> Perhaps the filled holes have triangles ordered in the wrong direction.
>
>
> On Sat, Aug 3, 2013 at 10:54 AM, andyjk <andrewkeeling at hotmail.com> wrote:
>
>> You are right Bill, it works correctly when I load the filledHoles stl
>> back
>> using vtk.
>>
>> It's strange that Meshlab shows the unfilled model, despite whether I use
>> vtkSTLWriter or vtkPLYWriter.
>>
>> Is there some quirk of these file formats or something ? I need a
>> watertight
>> mesh but am not sure whether my mesh is watertight outside of VTK ?
>>
>>
>>
>> --
>> View this message in context:
>> http://vtk.1045678.n5.nabble.com/Can-t-save-after-fillHoles-filter-tp5722435p5722444.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130803/aef58878/attachment.htm>


More information about the vtkusers mailing list