Skip to content

GeometryCuboid

GeometryCuboid describes rectangular prism shapes recognized on the drawing or inferred from dimensions. It captures origin coordinates, edge lengths, and orientation vectors 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. The object also records which view supplied the cuboid, confidence scores, and relationships to other geometric primitives so you can trace assumptions back to the source annotation and refine them as more detailed geometry becomes 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.",
    )