PolygonArtist

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

Bases: compas_rhino.artists.artist.RhinoArtist, compas.artists.primitiveartist.PrimitiveArtist

Artist for drawing polygons.

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

  • layer (str, optional) – The name of the layer that will contain the mesh.

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

clear_layer

draw_collection

redraw

register