Error in PLY files when exported

Hello everyone!

I have a VTK file from a FastFARM simulation of a wind turbine and the air flow around it. I used the Stream Tracer function with a point cloud as seed type, and then the Tube function to increase its width.

Now, I want to export every time step of the tube mesh generated so I can animate with Blender afterwards. For the turbine I exported every part as an STL file (with the save data option), yet, since I want to retain the colors of the tubes, I need to export as either a PLY or a GLTF, however the latter one would require me to export it frame by frame, so I would prefer to do it as a PLY; and here is the catch, whenever I export as a PLY, with or without colors, binary or ascii, the surface goes missing (I am sorry, but I don’t know what is going on to explain it further), the 3D visualizer from windows can’t open the files, and when I import it to Blender there is no surface, only dots where the surface should be (I inserted two pictures below, hope that makes everyone understand what is going on).

I was able to download as an STL without colors and a single frame as a GLTF with the colors, so the surfaces are there.

Does anyone know why this is happening and know a fix for the PLY file type?

I suppose that writing a script in python to download every frame as a GLTF files is also possible, but have no idea how it would work, so if anyone knows about it, I would appreciate the tips.

Thanks for the attention!


Please share your data and a state file.

Here is the state file in the .py format. The data (I assuming you mean the VTK files) and the .pvsm are over the maximum size for the forum, so please tell me if there is any other way I could send it.

StateFile.py (1.9 MB)

Sorry for the delay, I was away during the weekend.

Here are the files: Unique Download Link | WeTransfer
This is the files from simulation, stream tracer and tubes as VTK files, the state files and a GLTF file of how is supposed to be.

Hi @GKH

I confirm that there is a limitation in the vtkPLYWriter that skip unsupported cell types.
Your tubes are composed of triangle strip, which is not supported:
https://gitlab.kitware.com/paraview/paraview/-/issues/22886

The simplest workaround is to convert to triangles using the Triangulate filter before using SaveData.

save.ply (2.5 MB)

1 Like

Hi, thanks for the fast answer.

Using the Triangulate filter did make possible to export as PLY, however, there is still no color in the files, even when enabled the coloring option, with or without the alpha channel. Can you tell me if there is a workaround this?

Not sure what you mean, there is coloring information in the file I shared above:

Hello,

That is very weird, when I download the file you sent, it doesn’t have any color, nor when I export from the paraview myself. It must be a problem in my end, but just to be sure, what are the configurations when downloading the ply file? Thank you.

Well, how do you check if there is any color ?

Personnaly I used F3D: https://f3d.app/

I tried with the 3D viewer from windows and in Blender, the file appears gray in both.

Well, I think you have issue in your checking process.

Here is another tool that is able to show the color without issues: