QSphereGeometry¶
The
QSphereGeometry
class allows creation of a sphere in 3D space. * * * * * TheQSphereGeometry
class is most commonly used internally by theQSphereMesh
* but can also be used in customQGeometryRenderer
subclasses. More…
Synopsis¶
Functions¶
def
generateTangents
()def
indexAttribute
()def
normalAttribute
()def
positionAttribute
()def
radius
()def
rings
()def
slices
()def
tangentAttribute
()def
texCoordAttribute
()def
updateIndices
()def
updateVertices
()
Slots¶
def
setGenerateTangents
(gen)def
setRadius
(radius)def
setRings
(rings)def
setSlices
(slices)
Signals¶
def
generateTangentsChanged
(generateTangents)def
radiusChanged
(radius)def
ringsChanged
(rings)def
slicesChanged
(slices)
Detailed Description¶
* * * *
- class PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry([parent=None])¶
- param parent:
Constructs a new
QSphereGeometry
withparent
.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangents()¶
- Return type:
bool
Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangentsChanged(generateTangents)¶
- Parameters:
generateTangents – bool
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.indexAttribute()¶
- Return type:
Holds the geometry index attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.normalAttribute()¶
- Return type:
Holds the geometry normal attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.positionAttribute()¶
- Return type:
Holds the geometry position attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.radius()¶
- Return type:
float
Holds the radius of the sphere.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.radiusChanged(radius)¶
- Parameters:
radius – float
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.rings()¶
- Return type:
int
Holds the number of rings in the sphere.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.ringsChanged(rings)¶
- Parameters:
rings – int
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setGenerateTangents(gen)¶
- Parameters:
gen – bool
Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRadius(radius)¶
- Parameters:
radius – float
Holds the radius of the sphere.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRings(rings)¶
- Parameters:
rings – int
Holds the number of rings in the sphere.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.setSlices(slices)¶
- Parameters:
slices – int
Holds the number of slices in the sphere.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.slices()¶
- Return type:
int
Holds the number of slices in the sphere.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.slicesChanged(slices)¶
- Parameters:
slices – int
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.tangentAttribute()¶
- Return type:
Holds the geometry tangent attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.texCoordAttribute()¶
- Return type:
Holds the geometry texture coordinate attribute.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateIndices()¶
Updates indices based on rings and slices properties.
- PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateVertices()¶
Updates vertices based on rings, slices, and radius properties
© 2022 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.