ShapeObject

class ShapeObject[source]

Bases: object

ShapeObject is the base class for all geometry objects

Init ShapeObject

Parameters:

children (Union, optional) – Defaults to None.

Methods

add_parent(parent)[source]

Adds parent

Parameters:

parent (ShapeObject) – Adds parent

Return type:

None

static create_id()[source]

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