ShapeArtist
-
class
compas_rhino.artists.ShapeArtist(shape, color=None, layer=None)[source] Bases:
compas_rhino.artists._artist.BaseArtistBase class for artists for geometric shapes.
- Parameters
shape (
compas.geometry.Shape) – The geometry of the shape.color (3-tuple, optional) – The RGB components of the base color of the shape.
layer (str, optional) – The layer in which the shape should be contained.
- Attributes
shape (
compas.geometry.Shape) – The geometry of the shape.name (str) – The name of the shape.
color (tuple) – The RGB components of the base color of the shape.
layer (str) – The layer in which the shape should be contained.
Methods
__init__(shape[, color, layer])Initialize self.
build(item, **kwargs)Build an artist corresponding to the item type.
clear()Clear the main layer of the artist.
draw()redraw()register(item_type, artist_type)