Skip to content

GeometryCylinder

GeometryCylinder defines cylindrical shapes detected in the drawing, such as the enclosing shape of a turned part. It records the diameter and depth as Size objects, alongside a geometry type discriminator that marks the shape as a cylinder. By abstracting cylinders into a consistent representation, the API simplifies stock material selection for turned parts, fit assessments for rotating components, and enclosing-shape estimation. 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.",
    )