Polygon

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

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

A closed sequence of vertices bounding an area.

Closure is implied rather than written: the last vertex is not the first repeated, so a triangle states three points.