QCylinderGeometryclass allows creation of a cylinder in 3D space. * * * * * TheQCylinderGeometryclass is most commonly used internally by theQCylinderMesh* but can also be used in customQGeometryRenderer子类。 更多 …
def
indexAttribute
()
def
length
()
def
normalAttribute
()
def
positionAttribute
()
def
radius
()
def
rings
()
def
slices
()
def
texCoordAttribute
()
def
updateIndices
()
def
updateVertices
()
def
lengthChanged
(length)
def
radiusChanged
(radius)
def
ringsChanged
(rings)
def
slicesChanged
(slices)
* * * *
PySide2.Qt3DExtras.Qt3DExtras.
QCylinderGeometry
(
[
parent=None
]
)
¶
- param parent
QNode
构造新
QCylinderMesh
with
parent
.
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
indexAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
length
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
lengthChanged
(
length
)
¶
length
–
float
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
normalAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
positionAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
radius
(
)
¶
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
radiusChanged
(
radius
)
¶
radius
–
float
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
rings
(
)
¶
int
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
ringsChanged
(
rings
)
¶
rings
–
int
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setLength
(
length
)
¶
length
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setRadius
(
radius
)
¶
radius
–
float
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
setSlices
(
slices
)
¶
slices
–
int
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
slices
(
)
¶
int
另请参阅
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
slicesChanged
(
slices
)
¶
slices
–
int
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
texCoordAttribute
(
)
¶
QAttribute
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
updateIndices
(
)
¶
Updates the indices based on rings, slices, and length properties.
PySide2.Qt3DExtras.Qt3DExtras.QCylinderGeometry.
updateVertices
(
)
¶
Updates the vertices based on rings, slices, and length properties.