Add support for RGBA color on pointdata
About you
CamiTK developer
Product
MeshComponent
Overview
MeshComponent can have associated data. If the display mode is COLOR, the data is read as RGB data. If there is a 4th dimension (A for alpha transparency), this is not supported. It should be checked whether data works if it is encoded as:
- double/float between 0 and 1,
- int 8/16/32 bits in their respective range
Relevant logs and/or screenshots
Check commit d827e23d In libraries/core/mesh/MeshComponent.cpp
colorArrayToDisplay->SetTuple3(i, val[0], val[1], val[2]);
should work when there are 4 values with setTuple4. Hopefully VTK would use that as RGBA.
please do not remove anything below this line