- Qt 6.10
- Qt Quick 3D
- QML Types
- QtQuick3D.Helpers
- CuboidGeometry
- Qt Quick 3D | Commercial or GPLv3

# CuboidGeometry QML Type

Provides geometry for a cuboid. More...

Import Statement: | `import QtQuick3D.Helpers`
Since: | Qt 6.9
Inherits: | Geometry

- List of all members, including inherited members

## Properties

- asynchronous : bool
- status : bool
- xExtent : real
- xyMeshResolution : size
- xzMeshResolution : size
- yExtent : real
- yzMeshResolution : size
- zExtent : real

## Detailed Description

CuboidGeometry is a geometry type that represents a cuboid. The cuboid's size is defined by its xExtent, yExtent, and zExtent properties. The topology of the plane is defined by the yzMeshResolution, xzMeshResolution, and xyMeshResolution properties.

## Property Documentation

asynchronous : bool

This property holds whether the geometry generation should be asynchronous.

status : bool `[read-only]`

This property holds the status of the geometry generation when asynchronous is true.

Constant | Description
--- | ---
`CuboidGeometry.Null` | The geometry generation has not started
`CuboidGeometry.Ready` | The geometry generation is complete.
`CuboidGeometry.Loading` | The geometry generation is in progress.
`CuboidGeometry.Error` | The geometry generation failed.

xExtent : real

The x extent of the cuboid. The default value is 100.0.

xyMeshResolution : size

The number of segments in the x and y direction. The default value is 2x2.

xzMeshResolution : size

The number of segments in the x and z direction. The default value is 2x2.

yExtent : real

The y extent of the cuboid. The default value is 100.0.

yzMeshResolution : size

The number of segments in the y and z direction. The default value is 2x2.

zExtent : real

The z extent of the cuboid. The default value is 100.0.