Is there a non-VTK-m version of vtkmCleanGrid
?
I’m looking for a standard VTK algorithm to clean unstructured grids
Is there a non-VTK-m version of vtkmCleanGrid
?
I’m looking for a standard VTK algorithm to clean unstructured grids
I know that ParaView has vtkCleanUnstructuredGrid
which supports cleaning input unstructured grids in a single filter.
For VTK I think the easiest approach is chaining vtkMergePoints
and vtkMergeCells
.
Thanks for that tip! I’ll check out the source code for ParaViews clean filter and try out the chain you suggest
I just implemented a rough clean algorithm for UnstructuredGrids over in https://github.com/pyvista/pyvista/pull/355
It’s in Python and has some for
loops that need to be vectorized but it works!!
I put an example in that pull request