PyANGKernel.GKExtrudedPolygon¶
- class GKExtrudedPolygon¶
-
Synopsis¶
Methods¶
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¶
An extruded polygon is a 3D polygon which we have given a height. With this polygon we can manage an assigned texture per face.
- __init__()¶
- extendAllTextureToNotTexturedFaces()¶
It sets all the faces of the polygon without an assigned texture to the default texture.
It gets whether to have different textures for each lateral face or the same one for all
It gets the extruded polygon’s height
- getLateralTexture([nbFace=-1])¶
- Parameters:
nbFace – int
- Return type:
It gets the lateral face’s texture information (mainly to be edited)
- getLateralTextureToApply([nbFace=-1])¶
- Parameters:
nbFace – int
- Return type:
It gets the lateral face’s texture information to be applied when drawing it
- setDistinguishLateralFaces(value)¶
- Parameters:
value – bool
It sets whether to have different textures for each lateral face or the same one for all
- setHeight(aHeight)¶
- Parameters:
aHeight – float
It sets the extruded polygon’s height
- setLateralTexture(texturePath, horizontalReps, verticalReps[, nbFace=-1])¶
- Parameters:
texturePath – str
horizontalReps – int
verticalReps – int
nbFace – int
It sets the lateral face i’s texture name. Lateral faces are numbered from 0 to n-1. Face number 0 is the face corresponding to the line between the first and second points, face number 1 the one between the second and third points, … When all the lateral faces have the same texture, -1 in the nbFace parameter must be used