PolygonArtist

class compas_ghpython.artists.PolygonArtist(*args, **kwargs)[source]

Bases: compas_ghpython.artists.artist.GHArtist, compas.artists.primitiveartist.PrimitiveArtist

Artist for drawing polygons.

Parameters

polygon (compas.geometry.Polygon) – A COMPAS polygon.

Inherited Attributes

AVAILABLE_CONTEXTS

CONTEXT

ITEM_ARTIST

color

default_color

primitive

Methods

draw

Draw the polygon.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

clear

draw_collection

redraw

register