Skip to content

KX_PolyProxy

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_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

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 list of vertices of this polygon.

Type: KX_VertexProxy list (read only)

Returns the polygon material name with MA prefix

Returns: material name

Return type: string

Returns: The polygon material

Return type: 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.

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.

  • vertex: index of the vertex in the polygon: 0->2
  • vertex: integer

Returns: mesh vertex index

Return type: integer

Returns a mesh proxy

Returns: mesh proxy

Return type: MeshProxy