m3sh.vis

Visualization using VTK.

Wrapper functions for VTK functionality. This is not meant as a full featured set of visualization routines but should serve as a quick and convenient way to achieve basic visualization tasks.

This module can also be used as a stand-alone OBJ viewer:

>>> python vis.py file.obj --edges

opens a graphics window and displays the contents of file.obj. Omitting the ‘–edges’ argument will not render mesh edges.

Classes

Arrows(points, vectors[, shaft_radius, ...])

Circles(points, vectors, radius)

Cones(points, vectors, angle, radius, ...)

Disks(points, vectors)

LookupTable(actor)

Color bar.

OrientedGlyphs(points, vectors, source, ...)

Glyph base class.

PolyData(data, *[, verts, lines, polys])

Polygonal shape wrapper.

PolyGraph(nodes, graph)

Polygonal graph.

PolyMesh(mesh)

Polygonal mesh shape.

Prop(prop)

Render object.

Spheres(points)

Point cloud.

Mixins

GlyphMixin()

MapperMixin()

PropertyMixin()

Functions

aabb(points[, opacity, edges, labels, color])

Axis aligned bounding box.

add(obj[, renderer])

Queue object for display.

box(a, b[, opacity, edges, color])

Box shape.

canvas(*args[, color, color2, camera, ...])

Create or modify viewport.

colorbar(object[, x, y])

Display colorbar.

cones(points, vectors[, angle, radius, ...])

Cone rendering.

cylinder(a, b, radius[, opacity, ...])

Cylinder shape.

delete(*actors[, renderer])

Remove actor(s).

display(message[, x, y, size, color, bold, ...])

Display static text in the render window.

graph(points, graph[, color])

Graph visualization.

label(pos, text[, size, opacity, color])

Billboard text labels.

mesh(mesh[, color])

Mesh visualization.

pick(x, y[, type, iren])

Perform pick action.

plot(P[, width, size, style, color])

Polyline plotting.

quiver(points, vectors[, size, radius, ...])

Quiver plot.

scatter(points[, style, size, color])

Scatter plot.

screenshot(filename[, scale, window])

Save the current framebuffer contents.

show([width, height, title, info, shadows, ...])

Start the VTK event loop.

sphere(center, radius[, opacity, ...])

Sphere shape.

splat(points, vectors[, size, color])

Point splatting.

update(*args, **kwargs)

Update viewports.