ShapeArtist

class compas_rhino.artists.ShapeArtist(shape, color=None, layer=None)[source]

Bases: compas_rhino.artists._artist.BaseArtist

Base 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

clear_layer()

Clear the main layer of the artist.

Inherited Methods

build(item, **kwargs)

Build an artist corresponding to the item type.

clear()

draw()

redraw()

register(item_type, artist_type)