[Insight-users] mesh hole filling

Sylvain Jaume sylvain.jaume at kitware.com
Tue Aug 21 10:09:15 EDT 2007


Hello Daniela,

You can use:

vtkExtractEdges *extractEdges = ...
extractEdges->SetInput(inputPolyData);

vtkStripper *stripper = ...
stripper->SetInput(extractEdges->GetOutput());

vtkPolyData polydata = vtkPolyData::New();
polydata->SetPoints(stripper->GetOutput()->GetPoints());
polydata->SetPolys(stripper->GetOutput()->GetLines());

vtkTriangleFilter *triangleFilter = ...
triangleFilter->SetInput(polyData)

vtkAppendPolyData *append = ...
append->AddInput(inputPolyData);
append->AddInput(triangleFilter->GetOutput());

HTH,
Sylvain
PS: Your question should be posted to vtkusers at vtk.org

Date: Mon, 20 Aug 2007 17:16:46 +0200
From: Daniela Castelluccia <d.castelluccia at sintesi-scpa.com>
Subject: [Insight-users] mesh hole filling
To: insight-users at itk.org
Message-ID: <46C9B05E.3020304 at sintesi-scpa.com>
Content-Type: text/plain; charset=ISO-8859-15

Hi there,

I have a vtk file with a PolyData mesh that is a surface acquired with a
laser scanner.
However, this surface has little holes and I would fill them by appending a
similar surface to the holes.

How can I?


daniela


More information about the Insight-users mailing list