Provides geometry for a cone. 更多...
| import 语句: |
import QtQuick3D.Helpers
|
| Since: | Qt 6.9 |
| 继承: |
ConeGeometry is a geometry type that represents a cone. The cone's size is defined by its top radius, bottom radius, and length. The topology of the cone is defined by the number of rings and segments.
|
asynchronous : bool |
This property holds whether the geometry generation should be asynchronous.
|
bottomRadius : real |
This property holds the bottom radius of the cone.
注意:
topRadius
and bottomRadius can not both be
0.0
|
length : real |
This property holds the length of the cone. This value must be greater than 0 to generate a cone.
|
rings : int |
This property holds the number of rings of the cone, which are vertical subdivisions of the cone. The minimum value is 0, which means the cone has no vertical subdivisions.
|
segments : int |
This property holds the number of segments of the cone. The minimum value is 3, and any value lower will not generate any geometry.
|
status
:
bool
|
This property holds the status of the geometry generation when asynchronous is true.
| 常量 | 描述 |
|---|---|
ConeGeometry.Null
|
The geometry generation has not started |
ConeGeometry.Ready
|
The geometry generation is complete. |
ConeGeometry.Loading
|
The geometry generation is in progress. |
ConeGeometry.Error
|
The geometry generation failed. |
|
topRadius : real |
This property holds the top radius of the cone. This value must be 0 or greater.
注意:
topRadius and
bottomRadius
can not both be
0.0