PolygonObject

class compas_rhino.scene.PolygonObject[source]

Bases: RhinoSceneObject, GeometryObject

Scene object for drawing polygons.

Parameters:
polygoncompas.geometry.Polygon

A COMPAS polygon.

**kwargsdict, optional

Additional keyword arguments.

Methods

draw

Draw the polygon.

draw_edges

Draw the polygon edges.

draw_vertices

Draw the polygon vertices.

Inherited Methods

add

Add a child item to the scene object.

add_to_group

Add the objects to the group.

clear

The main clearing method.

clear_layer

Clear the layer of the scene object.

get_group

Find the group with the given name, or create a new one.