compas_blender.utilities.draw_mesh(vertices, faces, name='mesh', color=(1.0, 1.0, 1.0), centroid=True, collection=None, **kwargs)[source]

Draw a mesh object.

  • vertices (list[[float, float, float] or compas.geometry.Point]) – The vertices of the mesh.

  • faces (list[list[int]]) – The faces of the mesh.

  • color (tuple[float, float, float], optional) – The color of the mesh.

  • centroid (bool, optional) – If True, use the centroid of the mesh as the relative base for the vertex coordinates, instead of the origin of the world coordinates system.

  • collection (str or bpy.types.Collection, optional) – The Blender scene collection that should contain the objects created by this function.