fibomat.layout.layoutbase module#

Provide the LayoutBase class.

class fibomat.layout.layoutbase.LayoutBase(description: str | None = None)[source]#

Bases: Generic[ElementT, VectorT, BBoxT], ABC

ABC for all layout related classes.

It can be used to arrange, fibomat.pattern.Pattern and fibomat.shapes.Shape.

The saved are accessed via the LayoutBase.layout_elements() method which returns a generator containing all included elements.

What kind of elements and how these are set must be specified in child classes.

__init__(description: str | None = None)[source]#

description (str, optional): description

layout_elements() Iterator[ElementT][source]#

Access to the saved elements.


Any: Type depends on saved element.