A polygon holds the index of the vertex forming the poylgon.
Note: The polygon attributes are read-only, you need to retrieve the
vertex proxy if you want to change the vertex settings.
string
|
|
KX_PolygonMaterial or KX_BlenderMaterial
|
getMaterial()
Returns the polygon material |
|
|
string
|
|
integer
|
|
integer
|
|
integer
|
isVisible()
Returns whether the polygon is visible or not |
|
|
integer
|
isCollider()
Returns whether the polygon is receives collision or not |
|
|
integer
|
getVertexIndex(vertex)
Returns the mesh vertex index of a polygon vertex This index and the
one returned by getMaterialIndex() are needed to retrieve the vertex
proxy from KX_MeshProxy. |
|
|
KX_MeshProxy
|
|
bool
|
|
string
|
|
integer
|
collide
collide state of the polygon: 1=receives collision, 0=collision free.
|
bool
|
invalid
Test if the object has been freed by the game engine and is no longer
valid.
(Inherited from GameTypes.PyObjectPlus)
|
KX_PolygonMaterial or KX_BlenderMaterial
|
material
The material of the polygon
|
integer
|
matid
The material index of the polygon, use this to retrieve vertex proxy
from mesh proxy
|
string
|
matname
The name of polygon material, empty if no material.
|
string
|
name
The name of this CValue derived object (read-only).
(Inherited from GameTypes.CValue)
|
string
|
texture
The texture name of the polygon.
|
integer
|
v1
vertex index of the first vertex of the polygon, use this to retrieve
vertex proxy from mesh proxy
|
integer
|
v2
vertex index of the second vertex of the polygon, use this to
retrieve vertex proxy from mesh proxy
|
integer
|
v3
vertex index of the third vertex of the polygon, use this to retrieve
vertex proxy from mesh proxy
|
integer
|
v4
vertex index of the fourth vertex of the polygon, 0 if polygon has
only 3 vertex use this to retrieve vertex proxy from mesh proxy
|
integer
|
visible
visible state of the polygon: 1=visible, 0=invisible
|