How to avoid rendering ISO lines on surfaces

Hi vtk helpers,

There’re always ISO lines on surfaces rendered, as highlighted below:

Here’s my code:

I can set the width of the lines by “props->SetLineWidth(3.0)”, but I cannot just disable it by assigning 0 to the value.

How can I avoid rendering the ISO lines?

There are two solutions I can think of:

  1. tweak the coincident offsets such that the lines appear below the surface. See vtkMapper:: SetResolveCoincidentTopology and vtkMapper::SetRelativeCoincidentTopologyLineOffsetParameters
  2. Pass the output of your source through a filter that removes the lines. I’m not aware of a filter that does it. However, it’s quite easy to write one that shallow copies the points and polys into output and skips the lines.

Maybe vtkExtractCellsByType by selecting all types except the line ones would do the trick?