itacart.boundary.plane_ring
- itacart.boundary.plane_ring(cell)[source]
Effective plane ring of one atomic cell, and the shape it takes.
The entry point every geometric operation in the package goes through. Builds the nominal ring, caps it at the pole, and carries any vertex that exceeds the domain border out onto the border itself. A cell that absorbs the border is a
"trapezoid": it no longer honours the nominal area of its resolution.Existence is decided before the geometry is published, and by the bases rather than by leftover area. A cell exists when the base on its equator side is not negative – that is, when its anchor is inside the border – and the base on its polar side is positive. The prime meridian column is judged instead on the width of its base, since its two halves lie against two different borders and its apex is on the line.
- Parameters:
cell (
str) – Atomic compositional index string.- Return type:
tuple[Literal['parallelogram','triangle','trapezoid'],list[tuple[float,float]]]- Returns:
(shape, ring), the ring counter-clockwise on the parallels plane in metres. The ring is empty when the cell has no area inside the domain, that is, when it does not exist.