Skip to content

`vtkPolyDataNormals` hangs with problematic data and `SplittingOn` or `ConsistencyOn`

The attached dataset causes an infinite loop and therefore a program hang in vtkPolyDataNormals with the default options Splitting or Consistency enabled. Disabling both these options removes the hang.

It seems to be stuck in a loop inside vtkPolyData::GetCellEdgeNeighbors() .

In ParaView this can be replicated in the Generate Surface Normals filter.

normals_bug_polydata.vtp