QSphereGeometry#
The QSphereGeometry
class allows creation of a sphere in 3D space. More…
Synopsis#
Properties#
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)
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description#
The QSphereGeometry
class is most commonly used internally by the QSphereMesh
but can also be used in custom QGeometryRenderer
subclasses.
- class PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QSphereGeometry
with parent
.
Note
Properties can be used directly when from __feature__ import true_property
is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangents: bool#
Holds the value of the automatic tangent vectors generation flag. Tangent vectors are orthogonal to normal vectors.
- Access functions:
setGenerateTangents
(gen)Signal
generateTangentsChanged
(generateTangents)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.indexAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry index attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.normalAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry normal attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.positionAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry position attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.radius: float#
Holds the radius of the sphere.
- Access functions:
radius
()setRadius
(radius)Signal
radiusChanged
(radius)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.rings: int#
Holds the number of rings in the sphere.
- Access functions:
rings
()setRings
(rings)Signal
ringsChanged
(rings)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.slices: int#
Holds the number of slices in the sphere.
- Access functions:
slices
()setSlices
(slices)Signal
slicesChanged
(slices)
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.tangentAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry tangent attribute.
- Access functions:
- property PᅟySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.texCoordAttribute: PySide6.Qt3DCore.Qt3DCore.QAttribute#
Holds the geometry texture coordinate attribute.
- Access functions:
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangents()#
- Return type:
bool
See also
Getter of property generateTangents
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.generateTangentsChanged(generateTangents)#
- Parameters:
generateTangents – bool
Notification signal of property generateTangents
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.indexAttribute()#
- Return type:
Getter of property indexAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.normalAttribute()#
- Return type:
Getter of property normalAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.positionAttribute()#
- Return type:
Getter of property positionAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.radius()#
- Return type:
float
See also
Getter of property radius
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.radiusChanged(radius)#
- Parameters:
radius – float
Notification signal of property radius
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.rings()#
- Return type:
int
See also
Getter of property rings
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.ringsChanged(rings)#
- Parameters:
rings – int
Notification signal of property rings
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setGenerateTangents(gen)#
- Parameters:
gen – bool
See also
Setter of property generateTangents
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRadius(radius)#
- Parameters:
radius – float
See also
Setter of property radius
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setRings(rings)#
- Parameters:
rings – int
See also
Setter of property rings
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.setSlices(slices)#
- Parameters:
slices – int
See also
Setter of property slices
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.slices()#
- Return type:
int
See also
Getter of property slices
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.slicesChanged(slices)#
- Parameters:
slices – int
Notification signal of property slices
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.tangentAttribute()#
- Return type:
Getter of property tangentAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.texCoordAttribute()#
- Return type:
Getter of property texCoordAttribute
.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateIndices()#
Updates indices based on rings and slices properties.
- PySide6.Qt3DExtras.Qt3DExtras.QSphereGeometry.updateVertices()#
Updates vertices based on rings, slices, and radius properties