MeshArtist

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

Bases: compas_rhino.artists.artist.RhinoArtist, compas.artists.meshartist.MeshArtist

Artists for drawing mesh data structures.

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

  • layer (str, optional) – The name of the layer that will contain the mesh.

Methods

build(item, **kwargs)

Build an artist corresponding to the item type.

build_as(item, artist_type, **kwargs)

clear()

clear_edgelabels()

clear_edges()

clear_facelabels()

clear_facenormals()

clear_faces()

clear_layer()

clear_mesh()

clear_vertexlabels()

clear_vertexnormals()

clear_vertices()

draw([vertices, edges, faces, vertexcolor, ...])

Draw the mesh using the chosen visualization settings.

draw_collection(collection)

draw_edgelabels([text, color])

Draw labels for a selection of edges.

draw_edges([edges, color])

Draw a selection of edges.

draw_facelabels([text, color])

Draw labels for a selection of faces.

draw_facenormals([faces, color, scale])

Draw the normals of the faces.

draw_faces([faces, color, join_faces])

Draw a selection of faces.

draw_mesh([color, disjoint])

Draw the mesh as a consolidated RhinoMesh.

draw_vertexlabels([text, color])

Draw labels for a selection vertices.

draw_vertexnormals([vertices, color, scale])

Draw the normals at the vertices of the mesh.

draw_vertices([vertices, color])

Draw a selection of vertices.

get_artist_cls(data, **kwargs)

redraw()

register(item_type, artist_type)