May I ask how to modify the line color for vtkLineWidget
Hello,
You can change the color of the actor directly:
const widget = widgetManager.getWidgets()[0];
const actor = widget.getRepresentations()[3].getActors()[0];
actor.getProperty().setColor(color);
I find it hacky and it would be better if it was set in the state of the widget as for line thickness:
widget.getWidgetState().setLineThickness(10); // works fine
widget.getWidgetState().setLineColor(color); // setColor is undefined
Maybe @finetjul knows a better way to do it?
Oh I see that you already replied in this other thread @finetjul
Sorry for the ping