PlaneGeometry QML Type

Provides geometry for a plane. 更多...

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

几何体

特性

详细描述

PlaneGeometry is a geometry type that represents a plane. The plane's size is defined by its height and width properties. The topology of the plane is defined by the meshResolution property. The orientation of the plane is defined by the plane property.

特性文档编制

asynchronous : bool

This property holds whether the geometry generation should be asynchronous.

height : real

The height of the plane. The default value is 100.0.

meshResolution : size

The resolution of the plane. The default value is QSize (2, 2).

mirrored : bool

This property holds whether the UV coordinates of the plane are flipped vertically.

plane : PlaneGeometry::Plane

The orientation of the plane. The default value is PlaneGeometry .XY. All geometry will be created along the selected plane, and the front face and normal will point towards the remaining positive axis, unless reversed is true.

常量 描述
PlaneGeometry.XY The plane is oriented along the XY plane.
PlaneGeometry.XZ The plane is oriented along the XZ plane.
PlaneGeometry.ZY The plane is oriented along the ZY plane.

reversed : bool

This property holds whether the plane is flipped. This changes both the normal as well as the winding order of the plane. The default value is false, which means that when a Plane is created with the XY orientation, the normal will point in the positive Z direction and the winding order will be counter-clockwise. When reversed is true, the normal will point in the negative Z direction and the winding order will be clockwise.

status : bool [read-only]

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

常量 描述
PlaneGeometry.Null The geometry generation has not started
PlaneGeometry.Ready The geometry generation is complete.
PlaneGeometry.Loading The geometry generation is in progress.
PlaneGeometry.Error The geometry generation failed.

width : real

The width of the plane. The default value is 100.0.