Skip to content

RedactionZone

Bases: BaseModel

A class that represents a redacted area in the drawing.

PARAMETER DESCRIPTION
redaction_zone_type

TYPE: RedactionZoneType

polygon

A list of x,y tuples representing the vertices of the redacted area.

TYPE: Polygon

Source code in werk24/models/v2/models.py
class RedactionZone(BaseModel):
    """
    A class that represents a redacted area in the drawing.
    """

    redaction_zone_type: RedactionZoneType
    polygon: Polygon = Field(
        ...,
        description="A list of x,y tuples representing the vertices of the redacted area.",
    )