ShapeArtist
- class compas.artists.ShapeArtist(*args, **kwargs)[source]
Bases:
Artist
Base class for artists for geometric shapes.
- Parameters
shape (
compas.geometry.Shape
) – The geometry of the shape.color (tuple[float, float, float], optional) – The RGB color.
- Attributes
shape (
compas.geometry.Shape
) – The geometry of the shape.color (tuple[float, float, float]) – The color of the shape.
u (int) – The resolution in the U direction of the discrete shape representation.
v (int) – The resolution in the V direction of the discrete shape representation.
- Class Attributes
default_color (tuple[float, float, float]) – The default color of the shape.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
The main drawing method.
Drawing method for drawing an entire collection of objects.
Redraw the view.
Register an artist type to a data type.