haesleinhuepf / napari-process-points-and-surfaces

Process and analyze surfaces using vedo in napari.
BSD 3-Clause "New" or "Revised" License
21 stars 4 forks source link

Wireframe on/off #82

Open haesleinhuepf opened 1 year ago

haesleinhuepf commented 1 year ago

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 ?

jo-mueller commented 1 year ago

@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