WireFrame

class WireFrame(edges)[source]

Bases: ShapeObject

WireFrame inherits from ShapeObject

Inits WireFrame

A wireframe should have only a single connected component (but are not linited to having a single component)

Parameters:

edges (List[Edge]) – Edges that comprise the WireFrame

Methods

add_parent(parent)

Adds parent

Parameters:

parent (ShapeObject) – Adds parent

Return type:

None

static create_id()

Creates int as unique ID for ShapeObject instance. ShapeObject class tracks which IDs have previously been used and are thus not available.

Returns:

Unique ID

Return type:

int

Attributes

last_id = 0