databpy
  • Home
  • Attributes
  • API
  1. Objects
  2. create_mesh_object
  • Function reference
  • Attribute
    • named_attribute
    • store_named_attribute
    • remove_named_attribute
    • AttributeDomains
    • AttributeTypes
    • AttributeArray
  • Collections
    • create_collection
  • Objects
    • create_object
    • create_mesh_object
    • create_curves_object
    • create_pointcloud_object
    • create_bob
    • evaluate_object
    • BlenderObject
    • LinkedObjectError

On this page

  • create_mesh_object
    • Parameters
    • Returns
  1. Objects
  2. create_mesh_object

create_mesh_object

create_mesh_object(
    vertices=None,
    edges=None,
    faces=None,
    name='Mesh',
    collection=None,
)

Create a new Blender mesh object.

Parameters

Name Type Description Default
vertices np.ndarray The vertices as a numpy array with shape (N, 3). Defaults to None. None
edges np.ndarray The edges as a numpy array. Defaults to None. None
faces np.ndarray The faces as a numpy array. Defaults to None. None
name str The name of the object. Defaults to ‘Mesh’. 'Mesh'
collection bpy.types.Collection The collection to link the object to. Defaults to None. None

Returns

Name Type Description
Object The created mesh object.