composite_geometry

sisl.geom.composite_geometry(sections, section_cls, **kwargs)[source]

Creates a composite geometry from a list of sections.

The sections are added one after another in the provided order.

Parameters:
  • sections (array-like of (_geom_section or Geometry or tuple or dict)) –

    A list of sections to be added to the ribbon.

    Each section is either a composite_geometry.section or something that will be parsed to a composite_geometry.section.

  • section_cls (class, optional) – The class to use for parsing sections.

  • **kwargs – Keyword arguments used as defaults for the sections when the .