CuboidGeometry QML Type

Provides geometry for a cuboid. More...

Import Statement: import QtQuick3D.Helpers
Since: Qt 6.9
Inherits:

Geometry

Properties

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.

ConstantDescription
CuboidGeometry.NullThe geometry generation has not started
CuboidGeometry.ReadyThe geometry generation is complete.
CuboidGeometry.LoadingThe geometry generation is in progress.
CuboidGeometry.ErrorThe geometry generation failed.

xExtent : float

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 : float

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 : float

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


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.