Skip to content

Ghost cells for `vtkPolyData`

This MR hold an implementation of ghost cells generation for vtkPolyData. If works the same way the ghost cells generator works with vtkUnstructuredGrid (see !8120 (merged) and !8072 (merged)).

Along the way, API was added to vtkPolyData to ease access to topological information of its cells. This is done by the new API vtkPolyData::GetCellIdRelaticeToCellArray, which returns the position in its respective cell array (Verts, Lines, Polys, Strips) of the input cell id.

vtkPolyData::RemoveGhostCells didn't remove points that are not used anymore (they are removed in the version in vtkUnstructuredGrid). This caveat is fixed in this MR.

The ghost cells generation uses vtkFeatureEdge to extract the boundary of the input and match points across partitions. The filter was not passing global ids or input lines. 2 flags are being added to allow that: PassGlobalIds and PassLines. Along the way, I noticed a bug in the filter: cell data was wrongly mapped in the output when the input had mixed types. This is fixed in this MR.

Addresses paraview/paraview#19989 (closed)

Edited by Yohann Bearzi (Kitware)

Merge request reports