Skip to content

GeometryCuboid

GeometryCuboid describes rectangular prism shapes recognized on the drawing or inferred from dimensions. It captures the width, height, and depth as Size objects, alongside a geometry type discriminator that marks the shape as a cuboid, so that bounding boxes or stock sizes can be calculated. This model is useful for estimating material requirements, checking packaging constraints, or simplifying collision detection for automation planning. When paired with weight and material data, it helps approximate mass properties of an assembly before detailed CAD models are available.

Bases: Geometry

Represents the geometry of a cuboid

PARAMETER DESCRIPTION
geometry_type

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

width

The width of the cuboid.

TYPE: Size

height

The height of the cuboid.

TYPE: Size

depth

The depth of the cuboid.

TYPE: Size

Source code in werk24/models/v2/models.py
class GeometryCuboid(Geometry):
    """
    Represents the geometry of a cuboid
    """

    geometry_type: Literal[GeometryType.CUBOID] = GeometryType.CUBOID

    width: Size = Field(
        ...,
        description="The width of the cuboid.",
    )
    height: Size = Field(
        ...,
        description="The height of the cuboid.",
    )
    depth: Size = Field(
        ...,
        description="The depth of the cuboid.",
    )