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([vertices, edges, faces, vertexcolor, ...])

Draw the mesh using the chosen visualization settings.

draw_collection(collection)

draw_edges([edges, color])

Draw a selection of edges.

draw_faces([faces, color, join_faces])

Draw a selection of faces.

draw_mesh([color])

Draw the mesh as a RhinoMesh.

draw_vertices([vertices, color])

Draw a selection of vertices.

get_artist_cls(data, **kwargs)

redraw()

register(item_type, artist_type)