I am currently creating multiple cubes with vtkGlyph3D to ensure a good performance.
As i am doing this in VR multiple Actors are not possible. But now i want to color them independently. As they are one Actor i can’t do it by setting a color for the actor. Thats why i have to color them by setting scalars. But to highlight a certain cube i would need to color additionaly its edges or make a hatching pattern over the color, or even set a texture.
The creation and coloring works like this:
Generating multiple Cubes:
vtkSmartPointer cubeSource = vtkSmartPointer::New();
Adding them to the Glyph:
vtkSmartPointer glyph3D = vtkSmartPointer::New();
Create a mapper and actor:
vtkSmartPointer glyphMapper = vtkSmartPointer::New();
Now i color them:
currentColorArr = vtkSmartPointer::New();
currentColorArr->InsertNextTuple4(r,g,b,a); // Loop over all cubes to color
BUT how do i now set a edge coloring or some technique to highlight a selected cube?
I am glad about every help / idea!