plopp.widgets.cut3d.Cut3dTool#

plopp.widgets.cut3d.Cut3dTool(view, limits, direction, value=False, color='red', linewidth=1.5, **kwargs)[source]#

A tool that provides a slider to extract a plane of points in a three-dimensional scatter plot, and add it to the scene as an opaque cut. The slider controls the position of the slice. When the slider is dragged, the red outline of the cut is moved at the same time, while the actual point cloud gets updated less frequently using a debounce mechanism.

The tool also has two buttons +/- to increase/decrease the thickness of the cut.

Deprecated since version v24.04.0.

Parameters:
  • view – The 3d figure that contains the point clouds to be cut.

  • limits – The spatial extent of the points in the 3d figure in the XYZ directions.

  • direction – The direction normal to the slice.

  • value (default: False) – Set the cut to active upon creation if True.

  • color (default: 'red') – Color of the cut’s outline.

  • linewidth (default: 1.5) – Width of the line delineating the outline.

  • **kwargs – The kwargs are forwarded to the ToggleButton from ipywidgets.