Color support in MeshComponent SpecificRepresentation
As a | CamiTK and CEP developer |
I would like to | display colored meshes from cell/points data |
So that | This will allow displaying meshes with color specified as RGB/RGBA values for each cell or point (e.g. electrode model) |
Epic/Topics | MeshComponent color |
Description / Overview
In MeshComponent, SpecificRepresentation does not support using 3D or 4D data as RGB/RGBA color encoding for cells or points. Models of objects such as robots or implanted medical devices could be loaded and displayed using colors defined in the Mesh itself.
Hints
A @TODO comment in MeshComponent.h for the SpecificRepresentation enum shows that this part of the code is relevant for this feature.
Acceptance tests
-
Open a MeshComponent which uses color support → Mesh should be displayed with the specified colors -
Add a tutorial showing RGB color data used to color a mesh: not needed, there is already a test file check-with-color-pointdata.vtk that needs this function.
Track
Edited by Manik Bhattacharjee