CuboidGeometry QML Type

Provides geometry for a cuboid. 更多...

import 语句: import QtQuick3D.Helpers
Since: Qt 6.9
继承:

几何体

特性

详细描述

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

特性文档编制

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.

常量 描述
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.