VolMeshArtist
-
class
compas_rhino.artists.VolMeshArtist(volmesh, layer=None)[source] Bases:
compas_rhino.artists._artist.BaseArtistArtist for drawing volmesh data structures.
- Parameters
volmesh (
compas.datastructures.VolMesh) – A COMPAS volmesh.layer (str, optional) – The name of the layer that will contain the volmesh.
- Attributes
volmesh (
compas.datastructures.VolMesh) – The COMPAS volmesh associated with the artist.layer (str) – The layer in which the volmesh should be contained.
color_vertices (3-tuple) – Default color of the vertices.
color_edges (3-tuple) – Default color of the edges.
color_faces (3-tuple) – Default color of the faces.
Methods
__init__(volmesh[, layer])Initialize self.
build(item, **kwargs)Build an artist corresponding to the item type.
clear()Clear all objects in the “namespace” of the associated volmesh.
Clear the main layer of the artist.
draw([settings])Draw the volmesh using the chosen visualisation settings.
draw_celllabels([text, color])Draw labels for cells.
draw_cells([cells, color])Draw a selection of cells.
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_faces([faces, color])Draw a selection of faces.
draw_vertexlabels([text, color])Draw labels for a selection vertices.
draw_vertices([vertices, color])Draw a selection of vertices.
redraw()register(item_type, artist_type)