Unfortunately, I seem to have failed, I can change the facet to the color I want, but he still has a situation:
If the vertices involved in the slice are 300 400 500 and so on, I set the value of these vertices in PointData to red (this color should be according to the value defined in ColorMap).
For example, vertex 300 will undergo color gradient processing to the adjacent vertices (290-300), which is not obvious in wireframe mode, but very obvious in surface mode
(set according to actor.getProperty().setRepresentation(); )
I still have a question about the Lines attribute in my VTP. Why does the Lines attribute disappear after the vtkClipClosedSurface class is processed? I didn’t see how this reason works in the source code ( I will continue to check later), if you know the relevant reason, if you can, I hope you can share it with me.