Skip to content

fix(io): VTK readers doesn't handle color array properly

Description

When converting from vtk to sight mesh format, we check if color array named "Colors" exists in polydata in order to copy vertex or cells colors. When using PLY reader from VTK (maybe other format too) color array is named "RGB" or "RGBA".

We also added a workarround to fix color rendering of first cell on Ogre 3d. Otherwise mesh can appears black at first render.

Closes #745

How to test it?

Open a ply file with cells and/or vertex color on sightviewer.

Data

Check data of #745

Edited by Marc SCHWEITZER

Merge request reports