PrimitiveArtist
-
class
compas_ghpython.artists.
PrimitiveArtist
(primitive, color=None)[source] Bases:
compas_ghpython.artists._artist.BaseArtist
Base class for artists for geometry primitives.
- Parameters
primitive (
compas.geometry.Primitive
) – The instance of the primitive.color (3-tuple, optional) – The RGB color specification of the object.
- Attributes
primitive (
compas.geometry.Primitive
) – A reference to the geometry of the primitive.name (str) – The name of the primitive.
color (tuple) – The RGB components of the base color of the primitive.
Methods
__init__
(primitive[, color])Initialize self.
draw
()draw_collection
(collection)