May I ask how to modify the line color for vtkLineWidget
You can change the color of the actor directly:
const widget = widgetManager.getWidgets(); const actor = widget.getRepresentations().getActors(); 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?