[vtkusers] vtkConnectivityFilter

David Thompson david.thompson at kitware.com
Mon Oct 24 09:57:24 EDT 2016


> Is the resolution really reduced, or does it just look more faceted because surface normals have been lost or modified? Try connecting a vtkPolyDataNormals filter after the vtkCleanPolyDataFilter if that is the case.

I was thinking it might be because the vtkCleanPolyData filter averages point-scalar values used for coloring when it merges coincident vertices. That makes the mesh appear to lose resolution because it has... there are not as many unique points after coincident vertices are merged. Shy of perturbing coincident points and inserting lots of tiny little triangles to fill the gaps, I don't see a way to get around it and be left with a connected mesh.

	David

> On Sat, Oct 22, 2016 at 12:11 PM, SM Rolfe <smrolfe at uw.edu> wrote:
> Hi David,
> Thanks! The vtkCleanPolyData filter solves the connectivity issue. It also looks like it's reducing the resolution of the output mesh significantly. If it's only deleting the repeated points, I don't think this should be occurring?
> Thanks,
> Sara
> 
> On Sat, Oct 22, 2016 at 5:36 AM, David Doria <daviddoria at gmail.com> wrote:
> On Fri, Oct 21, 2016 at 10:42 PM, SM Rolfe <smrolfe at uw.edu> wrote:
> Thanks David, I think you're right. When I try using the vtkDataSetSurfaceFilter or vtkExtractEdges I can get a connected surface, but it changes the original mesh points. Do you have any advice on the best way to correct the connectivity without altering these points? I am guessing I could go through each mesh point, look for repeats and add connectivity, but I'm wondering if there's a more efficient way?
> 
> Thanks for your help,
> Sara
> 
> I think vtkCleanPolyData does that: http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CleanPolyData 
> 
> David
> 
> 
> _______________________________________________
> 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
> 
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
> 
> 
> 
> 
> -- 
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.
> _______________________________________________
> 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
> 
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list