KX_MeshBuilderSlot
Class Range.types.KX_MeshBuilderSlot.
Not in the Range documentation
Section titled “Not in the Range documentation”These items exist in the engine but were not in the Range documentation. The ones marked new in Anastacio were added by Anastacio Engine.
addIndex(indices)
Section titled “addIndex(indices)”method
Adds vertex indices (list of integers) to the primitives and, for triangle meshes, to the triangles.
addPrimitiveIndex(indices)
Section titled “addPrimitiveIndex(indices)”method
Adds indices only to the primitive (drawing) list.
addTriangleIndex(indices)
Section titled “addTriangleIndex(indices)”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
recalculateNormals()
Section titled “recalculateNormals()”method
Recomputes vertex normals from the triangles.
removePrimitiveIndex(start, end=-1)
Section titled “removePrimitiveIndex(start, end=-1)”method
Removes primitive indices from start to end.
removeTriangleIndex(start, end=-1)
Section titled “removeTriangleIndex(start, end=-1)”method
Removes triangle indices from start to end.
removeVertex(start, end=-1)
Section titled “removeVertex(start, end=-1)”method
Removes vertices from start to end.
colorCount
Section titled “colorCount”attribute · read-only
How many vertex color layers the slot has.
indices
Section titled “indices”attribute · read-only
List of primitive indices.
material
Section titled “material”attribute
Slot material.
primitive
Section titled “primitive”attribute · read-only
Slot primitive type (points, lines or triangles).
triangleIndices
Section titled “triangleIndices”attribute · read-only
List of triangle indices.
uvCount
Section titled “uvCount”attribute · read-only
How many UV layers the slot has.
vertices
Section titled “vertices”attribute · read-only
List of the slot vertices.
