Provides geometry for a capsule. 更多...
| import 语句: |
import QtQuick3D.Helpers
|
| Since: | Qt 6.10 |
| 继承: |
A geometry for generating a capsule model. The capsule is centered at
(0, 0, 0)
with the height of the capsule extending in the x direction and the diameter on the yz plane.
|
asynchronous
:
bool
|
This property holds whether the geometry generation should be asynchronous.
|
diameter
:
real
|
Diameter on the yz plane.
|
enableNormals
:
bool
|
Generate mesh face normals.
|
enableUV
:
bool
|
Generate mesh uv coordinates.
|
height
:
real
|
Height of the middle cylinder on the x axis, excluding the hemispheres.
|
latitudes
:
int
|
Number of latitudes, distributed by inclination. Will always be snapped to an even number.
|
longitudes
:
int
|
Number of longitudes, or meridians, distributed by azimuth.
|
rings
:
int
|
Number of sections in cylinder between hemispheres.
|
status
:
bool
|
This property holds the status of the geometry generation when asynchronous is true.
| 常量 | 描述 |
|---|---|
CapsuleGeometry.Null
|
The geometry generation has not started |
CapsuleGeometry.Ready
|
The geometry generation is complete. |
CapsuleGeometry.Loading
|
The geometry generation is in progress. |
CapsuleGeometry.Error
|
The geometry generation failed. |
|
uvProfile
:
UVProfile
|
Manner in which UV coordinates are distributed along the length of the capsule.
| 常量 | 描述 |
|---|---|
CapsuleGeometry.Fixed
|
The upper third of the UV texture is the North hemisphere, the middle third is the cylinder and the last third is the South hemisphere. |
CapsuleGeometry.Aspect
|
UVs match the height to radius ratio. |
CapsuleGeometry.Uniform
|
Uniform proportion for all UV cells, according to the ratio of latitudes to rings. |