CapsuleGeometry QML Type
Fornisce la geometria di una capsula. Altro...
| Import Statement: | import QtQuick3D.Helpers |
| Since: | Qt 6.10 |
| Inherits: |
Proprietà
- asynchronous : bool
- diameter : real
- enableNormals : bool
- enableUV : bool
- height : real
- latitudes : int
- longitudes : int
- rings : int
- status : bool
- uvProfile : UVProfile
Descrizione dettagliata
Una geometria per la generazione di un modello a capsula. La capsula è centrata in (0, 0, 0); l'altezza della capsula si estende nella direzione x, mentre il diametro si trova sul piano yz.
Documentazione delle proprietà
asynchronous : bool [default: true]
Questa proprietà indica se la generazione della geometria deve avvenire in modo asincrono.
diameter : real [default: 100]
Diametro sul piano yz.
enableNormals : bool [default: true]
Generare le normali delle facce della mesh.
enableUV : bool [default: false]
Generare le coordinate UV della mesh.
height : real [default: 100]
Altezza del cilindro centrale sull'asse x, escluse le semisfere.
latitudes : int [default: 16]
Numero di latitudini, distribuite in base all'inclinazione. Verrà sempre arrotondato a un numero pari.
longitudes : int [default: 32]
Numero di longitudini, o meridiani, distribuite in base all'azimut.
rings : int [default: 1]
Numero di sezioni presenti nel cilindro tra i due emisferi.
status : bool [read-only]
Questa proprietà contiene lo stato della generazione della geometria quando il parametro "asynchronous" è impostato su "true".
| Costante | Descrizione |
|---|---|
CapsuleGeometry.Null | La generazione della geometria non è ancora iniziata |
CapsuleGeometry.Ready | La generazione della geometria è terminata. |
CapsuleGeometry.Loading | La generazione della geometria è in corso. |
CapsuleGeometry.Error | La generazione della geometria non è andata a buon fine. |
uvProfile : UVProfile [default: CapsuleGeometry.Fixed]
Modalità di distribuzione delle coordinate UV lungo la lunghezza della capsula.
| Costante | Descrizione |
|---|---|
CapsuleGeometry.Fixed | Il terzo superiore della texture UV corrisponde all'emisfero nord, il terzo centrale al cilindro e l'ultimo terzo all'emisfero sud. |
CapsuleGeometry.Aspect | Le coordinate UV rispecchiano il rapporto tra altezza e raggio. |
CapsuleGeometry.Uniform | Proporzione uniforme per tutte le celle UV, in base al rapporto tra latitudini e anelli. |
© 2026 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.