MeshGraphic#

MeshGraphic#

Constructor#

MeshGraphic(positions, indices[, mode, ...])

Create a mesh Graphic.

Properties#

MeshGraphic.alpha

The opacity of the graphic

MeshGraphic.alpha_mode

How the alpha is handled by the renderer

MeshGraphic.axes

MeshGraphic.block_events

Used to block events for a graphic and prevent recursion.

MeshGraphic.clim

get or set the colormap limits

MeshGraphic.cmap

get or set the cmap

MeshGraphic.colors

Get or set the colors

MeshGraphic.deleted

used to emit an event after the graphic is deleted

MeshGraphic.event_handlers

Registered event handlers.

MeshGraphic.indices

Get or set the vertex indices

MeshGraphic.mapcoords

get or set the mapcoords

MeshGraphic.mode

get mesh rendering mode

MeshGraphic.name

Graphic name

MeshGraphic.offset

[x, y, z]

MeshGraphic.plane

Get or set the current slice plane.

MeshGraphic.positions

Get or set the vertex positions

MeshGraphic.right_click_menu

MeshGraphic.rotation

Orientation of the graphic as a quaternion

MeshGraphic.supported_events

events supported by this graphic

MeshGraphic.visible

Whether the graphic is visible

MeshGraphic.world_object

Associated pygfx WorldObject.

Methods#

MeshGraphic.add_axes()

Add axes onto this Graphic

MeshGraphic.add_event_handler(*args)

Register an event handler.

MeshGraphic.clear_event_handlers()

clear all event handlers added to this graphic

MeshGraphic.remove_event_handler(callback, ...)

remove a registered event handler

MeshGraphic.rotate(alpha[, axis])

Rotate the Graphic with respect to the world.