KX_MeshBuilder
Class Range.types.KX_MeshBuilder.
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.
addSlot(material, primitive=0)
Section titled “addSlot(material, primitive=0)”method
Creates a mesh part with the given material. primitive: 0 triangles (default), 1 points, 2 lines.
Returns: KX_MeshBuilderSlot
finish()
Section titled “finish()”method
Builds the mesh from the slots and registers it in the scene. Then use obj.replaceMesh() to put it on an object.
Returns: KX_Mesh
FromMesh(name, mesh)
Section titled “FromMesh(name, mesh)”method
Creates a builder from an existing mesh, to copy and edit it.
Returns: KX_MeshBuilder
attribute · read-only
List of the mesh slots (KX_MeshBuilderSlot).
