create_object

create_object(
    vertices=None,
    edges=None,
    faces=None,
    name='NewObject',
    collection=None,
)

Create a new Blender object and corresponding mesh.

Vertices are created for each row in the vertices array. If edges and / or faces are created then they are also initialized but default to None.

Returns

Name Type Description
Object The created object.