PolygonArtist
- class compas_plotters.artists.PolygonArtist(*args, **kwargs)[source]
Bases:
PlotterArtist
,PrimitiveArtist
Artist for COMPAS polygons.
- Parameters
polygon (
compas.geometry.Polygon
) – A COMPAS polygon.linewidth (float, optional) – Width of the polygon edge lines.
linestyle ({‘solid’, ‘dotted’, ‘dashed’, ‘dashdot’}, optional) – Style of the line.
facecolor (tuple[float, float, float], optional) – Color of the interior face of the polygon.
edgecolor (tuple[float, float, float], optional) – Color of the boundary of the polygon.
zorder (int, optional) – Stacking order of the polygon on the canvas.
**kwargs (dict, optional) – Additional keyword arguments. See
compas_plotters.artists.PlotterArtist
andcompas.artists.PrimitiveArtist
for more info.
- Attributes
polygon (
compas.geometry.Polygon
) – The polygon associated with the artist.
Methods
Draw the polygon.
Update the polygon using the current geometry and visualization settings.
Inherited Methods
Build an artist corresponding to the item type.
Build an artist with the given type.
Clear all objects from the view.
Drawing method for drawing an entire collection of objects.
Register an artist type to a data type.
Update the data limits of the plotting axes using the visualization data.
Compute the bounds of the current view.