Highlighting Surface Cells using ParaView Python

Is it possible to highlight a set of cell/point IDs using ParaView Python?

Currently, when I am using the “Interactive Select Cells On” feature, I can pick a single cell interactively. As a result, the picked cell will be highlighted in pink color. In the trace, this will get recorded as follows:

# create a surface cells selection
SelectSurfaceCells(Rectangle=[593, 790, 593, 790], Modifier='ADD')

Few questions:

  • Why does selecting a single cell appear as a rectangular selection in the trace?
  • Is there a way to highlight/visualize (as pink color selections) a set of cell IDs using paraview python?

Hi @sherin.sugathan !

Because this is how the wrapping for SelectCellsOn was implemented, as it is likely that the ID is not known when tracing the selection.

Is there a way to highlight/visualize (as pink color selections) a set of cell IDs using paraview python?

Use SelectIds instead

1 Like