base class — SCA_IObject
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.
The name of polygon material, empty if no material.
| Type: | string |
|---|
The material of the polygon.
| Type: | KX_PolygonMaterial or KX_BlenderMaterial |
|---|
The texture name of the polygon.
| Type: | string |
|---|
The material index of the polygon, use this to retrieve vertex proxy from mesh proxy.
| Type: | integer |
|---|
vertex index of the first vertex of the polygon, use this to retrieve vertex proxy from mesh proxy.
| Type: | integer |
|---|
vertex index of the second vertex of the polygon, use this to retrieve vertex proxy from mesh proxy.
| Type: | integer |
|---|
vertex index of the third vertex of the polygon, use this to retrieve vertex proxy from mesh proxy.
| Type: | integer |
|---|
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.
| Type: | integer |
|---|
visible state of the polygon: 1=visible, 0=invisible.
| Type: | integer |
|---|
collide state of the polygon: 1=receives collision, 0=collision free.
| Type: | integer |
|---|
Returns the polygon material name with MA prefix
| Returns: | material name |
|---|---|
| Return type: | string |
| Returns: | The polygon material |
|---|---|
| Return type: | KX_PolygonMaterial or KX_BlenderMaterial |
| Returns: | The texture name |
|---|---|
| Return type: | string |
Returns the material bucket index of the polygon. This index and the ones returned by getVertexIndex() are needed to retrieve the vertex proxy from MeshProxy.
| Returns: | the material index in the mesh |
|---|---|
| Return type: | integer |
Returns the number of vertex of the polygon.
| Returns: | number of vertex, 3 or 4. |
|---|---|
| Return type: | integer |
Returns whether the polygon is visible or not
| Returns: | 0=invisible, 1=visible |
|---|---|
| Return type: | boolean |
Returns whether the polygon is receives collision or not
| Returns: | 0=collision free, 1=receives collision |
|---|---|
| Return type: | integer |
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 MeshProxy.
| Parameters: |
|
|---|---|
| Returns: | mesh vertex index |
| Return type: | integer |
Returns a mesh proxy
| Returns: | mesh proxy |
|---|---|
| Return type: | MeshProxy |