napari-process-points-and-surfaces icon indicating copy to clipboard operation
napari-process-points-and-surfaces copied to clipboard

Wireframe on/off

Open haesleinhuepf opened this issue 2 years ago • 1 comments

It would be cool to have a Tools menu entry for turning on/off the wireframe of the current surface layer.

What do you think @jo-mueller ?

haesleinhuepf avatar Aug 03 '23 08:08 haesleinhuepf

@haesleinhuepf good idea, shouldn't be that hard - the function could look something like this:

def toggle_wireframe(layer: "napari.layers.Surface", viewer: 'napari.Viewer') -> None:
  viewer.layers[layer.name].wireframe.visible = True
  return None

jo-mueller avatar Aug 04 '23 12:08 jo-mueller