spotty colors after saving .vtu to .vtp

rodsolid.vtu (2.3 MB)


Hi,

I saved a .vtu file as .vtp in ParaView. After loading the .vtp file, the color gradient appears patchy when displaying the displacements. Probably a total beginner question. Sorry.

Thanks for help

Hi @Bernward_Platz

You cannot save an unstructured grid as a .vtp without first converting it to a polydata (eg using ExtractSurface).

Please clarify your steps :slight_smile:

Best,

I attached the py-Script that converts the file.

vtu2vtp_3.py (1.7 KB)

The goal is to display the .vtu in WEB. Perhaps there are better possibilties than converting it to .vtp

Indeed, you are extracting the surface using vtkPython, that should work.

The goal is to display the .vtu in WEB

The simplest way to do that is to use File → ExportScene → .vtkjs and then to use glance HTML to visualize.

The step 3 in your script is not needed, the geometry filter should keep those arrays.

Because I have still problems with the colors in my .vtp I switched to Paraview Glance and loading the .vtu directly. Then I have no problems. Thanks a lot for all answers.