MeshArtist

class compas_ghpython.artists.MeshArtist(item, **kwargs)[source]

Bases: GHArtist, MeshArtist

Artist for drawing mesh data structures.

Parameters
  • mesh (Mesh) – A COMPAS mesh.

  • **kwargs (dict, optional) – Additional keyword arguments. See GHArtist and MeshArtist for more info.

Methods

clear_edges

GH Artists are state-less.

clear_faces

GH Artists are state-less.

clear_vertices

GH Artists are state-less.

draw

Draw the mesh.

draw_edges

Draw a selection of edges.

draw_faces

Draw a selection of faces.

draw_mesh

Draw the mesh as a RhinoMesh.

draw_vertices

Draw a selection of vertices.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

Build an artist with the given type.

clear

Clear all components of the mesh.

draw_collection

Drawing method for drawing an entire collection of objects.

redraw

Redraw the view.

register

Register an artist type to a data type.