MeshArtist

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

Bases: compas_ghpython.artists.artist.GHArtist, compas.artists.meshartist.MeshArtist

Artist for drawing mesh data structures.

Parameters

mesh (compas.datastructures.Mesh) – A COMPAS mesh.

Methods

build(item, **kwargs)

Build an artist corresponding to the item type.

build_as(item, artist_type, **kwargs)

clear()

clear_edges()

GH Artists are state-less.

clear_faces()

GH Artists are state-less.

clear_vertices()

GH Artists are state-less.

draw([color])

Draw the mesh as a RhinoMesh.

draw_collection(collection)

draw_edges([edges, color])

Draw a selection of edges.

draw_faces([faces, color, join_faces])

Draw a selection of faces.

draw_vertices([vertices, color])

Draw a selection of vertices.

redraw()

register(item_type, artist_type)