Skip to content

KX_MeshBuilderSlot

Class Range.types.KX_MeshBuilderSlot.

These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.

method

Adds vertex indices (list of integers) to the primitives and, for triangle meshes, to the triangles.

method

Adds indices only to the primitive (drawing) list.

method

Adds indices only to the triangle list (physics and rays).

addVertex(position, normal=None, tangent=None, uvs=None, colors=None)

Section titled “addVertex(position, normal=None, tangent=None, uvs=None, colors=None)”

method

Adds a vertex. uvs and colors are lists, one entry per layer.

Returns: int

method

Recomputes vertex normals from the triangles.

method

Removes primitive indices from start to end.

method

Removes triangle indices from start to end.

method

Removes vertices from start to end.

attribute · read-only

How many vertex color layers the slot has.

attribute · read-only

List of primitive indices.

attribute

Slot material.

attribute · read-only

Slot primitive type (points, lines or triangles).

attribute · read-only

List of triangle indices.

attribute · read-only

How many UV layers the slot has.

attribute · read-only

List of the slot vertices.