Skip to content

Feature

Feature represents a characteristic identified on the drawing that carries additional requirements. The model is the common base for feature callouts such as dimensions, threads, bores, chamfers, and GD&T frames: it stores a reference identifier, the label as it appears on the drawing, and a confidence score. Downstream consumers can use these shared fields to group related annotations, trace extracted data back to the drawing, or filter results by confidence before feeding them into process plans or quality checkpoints.

Bases: Reference

Represents a design or manufacturing cue with descriptive information and metadata.

PARAMETER DESCRIPTION
reference_id

Reference ID to identify the object.

TYPE: int

label

A short description of the feature in a human-readable format.

TYPE: str

confidence

Confidence in the feature extraction or interpretation.

TYPE: Confidence | None

Source code in werk24/models/v2/models.py
class Feature(Reference):
    """
    Represents a design or manufacturing cue with descriptive information and metadata.
    """

    label: str = Field(
        ...,
        description="A short description of the feature in a human-readable format.",
    )

    confidence: Optional[Confidence] = Field(
        ...,
        description="Confidence in the feature extraction or interpretation.",
    )