QSphereGeometryclass allows creation of a sphere in 3D space. * * * * * TheQSphereGeometryclass is most commonly used internally by theQSphereMesh* but can also be used in customQGeometryRenderer子类。 更多 …
def
generateTangents
()
def
indexAttribute
()
def
normalAttribute
()
def
positionAttribute
()
def
radius
()
def
rings
()
def
slices
()
def
tangentAttribute
()
def
texCoordAttribute
()
def
updateIndices
()
def
updateVertices
()
def
setGenerateTangents
(gen)
def
setRadius
(radius)
def
setRings
(rings)
def
setSlices
(slices)
def
generateTangentsChanged
(generateTangents)
def
radiusChanged
(radius)
def
ringsChanged
(rings)
def
slicesChanged
(slices)
* * * *
PySide2.Qt3DExtras.Qt3DExtras.
QSphereGeometry
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QSphereGeometry
with
parent
.
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
generateTangents
(
)
¶
bool
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
generateTangentsChanged
(
generateTangents
)
¶
generateTangents
–
bool
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
indexAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
normalAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
positionAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
radius
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
radiusChanged
(
radius
)
¶
radius
–
float
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
rings
(
)
¶
int
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
ringsChanged
(
rings
)
¶
rings
–
int
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
setGenerateTangents
(
gen
)
¶
gen
–
bool
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
setRadius
(
radius
)
¶
radius
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
slices
(
)
¶
int
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
slicesChanged
(
slices
)
¶
slices
–
int
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
tangentAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QSphereGeometry.
texCoordAttribute
(
)
¶
QAttribute
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