PolyMesh

class m3sh.vis.PolyMesh(mesh)[source]

Bases: PolyData

Polygonal mesh shape.

Wrapper class managing the visual properties of a mesh. Instances of this class are typically generated using the mesh() function.

Parameters:

mesh (Mesh or tuple) – Polygonal mesh representation.

Note

The generated PolyMesh instance and mesh share their vertex coordinate data buffers.

Attributes

actor

Actor instance.

bounds

Axis aligned bounding box.

color

Color property.

mesh

Mesh access.

name

Prop name.

normals

Vertex normals.

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.

edges([style, width, color])

Edge display.

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

Modify lookup table properties.

modified()

Update notification.

verts([style, size, color])

Vertex display.