Polygon

class of dascore.core.annotations
inherits from: dascore.core.annotations._AnnotationModel, RichRepr, DascoreBaseModel, pydantic.main.BaseModel
source

Polygon(
    object_type: Literal[‘Polygon’] = Polygon,
    vertices: tuple[tuple[collections.abc.Mapping[str, tuple[Any, …]], …], …] ,
)-> None

Closed rings of vertices bounding an area.

vertices holds the parts, each a tuple of rings keyed by dimension: the first ring is the outer boundary, the rest are holes. Closure is implied, so a triangle states three points.