Skip to content

GeometryCylinder

GeometryCylinder defines cylindrical shapes detected in the drawing, whether they represent holes, shafts, or surface features. It records the axis location, length, diameter, and orientation, giving downstream systems the precise spatial data needed for simulation or collision checking. The model also stores the view from which the cylinder was extracted, confidence values, and links to related features such as threads or surface treatments. By abstracting cylinders into a consistent representation, the API simplifies toolpath generation, tolerance analysis, fit assessments for rotating components, and stock material selection for turned parts. It further enables analytics that compare cylinder populations across product families to spot design trends or machining challenges early.

Bases: Geometry

Represents the geometry of a plate-shaped material.

PARAMETER DESCRIPTION
geometry_type

TYPE: Literal[<GeometryType.CYLINDER: 'CYLINDER'>] DEFAULT: <GeometryType.CYLINDER: 'CYLINDER'>

diameter

The diameter of the cylinder.

TYPE: Size

depth

The depth of the cylinder.

TYPE: Size

Source code in werk24/models/v2/models.py
class GeometryCylinder(Geometry):
    """
    Represents the geometry of a plate-shaped material.
    """

    geometry_type: Literal[GeometryType.CYLINDER] = GeometryType.CYLINDER
    diameter: Size = Field(
        ...,
        description="The diameter of the cylinder.",
    )
    depth: Size = Field(
        ...,
        description="The depth of the cylinder.",
    )