OpenGL: changing the visualization color

Hello,
Is that possible to change the geometry visualization color in OpenGL so that the background is white and the geometry lines are black? Also could we change the thickness of the geometry lines?

Best,
Nima

Yes indeed. There are lots of vis commands that let you do that sort of thing. Use “help /vis” or just “ls” or look in the Application Developers Guide, Section on “Built-in Commands”. E.g.,

/vis/viewer/set/background
/vis/set/colour
/vis/set/lineWidth

Have fun.

To change the colour of detector volumes whose vis attributes have not been set:

/vis/viewer/set/defaultColour

To change line width of detector volumes (in wireframe style):

/vis/viewer/set/globalLineWidthScale

(Currently also needs /vis/viewer/rebuild but I’ll make that automatic.)

Then there’s a recently introduced command:

/vis/viewer/colourByDensity