Skip to content

Geometry

Geometry provides the raw spatial description of a feature or annotation in the drawing. It can contain polylines, arcs, circles, or textual baselines that define where something appears on the sheet. The model includes coordinate systems, units, and bounding boxes so you can overlay the extracted geometry on other representations such as CAD or raster images. Because many higher-level objects depend on accurate geometry, this class acts as a reusable component for linking shapes to dimensions, notes, or manufacturing symbols. Use it whenever you need to visualize the extracted data, calculate spatial relationships, or translate drawing references into machine coordinates.

Bases: BaseModel, ABC

Base class for representing geometric shapes.

PARAMETER DESCRIPTION
geometry_type

TYPE: GeometryType

Source code in werk24/models/v2/models.py
class Geometry(BaseModel, abc.ABC):
    """
    Base class for representing geometric shapes.
    """

    geometry_type: GeometryType