PolyData

class m3sh.vis.PolyData(data, *, verts=None, lines=None, polys=None)[source]

Bases: Prop, PropertyMixin, MapperMixin

Polygonal shape wrapper.

Manages visual properties of a polygonal shape. If data is an array_like representation of a point set, it is converted to an equivalent ndarray instance. The created array is then accessible via the points attribute.

Parameters:
  • data (array_like or vtkPolyData) – Point data.

  • verts (list, optional) – Combinatorial vertex definitions.

  • lines (list, optional) – Combinatorial line definitions.

  • polys (list, optional) – Combinatorial face definitions.

Note

The verts, lines, and polys arguments are ignored when data is a vtkPolyData instance.

Attributes

actor

Actor instance.

bounds

Axis aligned bounding box.

color

Color property.

name

Prop name.

opacity

Opacity property.

pickable

Pickable property.

points

Point coordinate array access.

prop

Wrapped VTK instance.

visible

Visibility property.

Methods

colorize(scalars, items[, interpolate_scalars])

Colorize polygonal data.

lookuptable([range, gradient, logscale, size])

Modify lookup table properties.

modified()

Update notification.