draw_lines

compas_blender.utilities.draw_lines(lines, collection=None, centroid=True)[source]

Draw line objects.

Parameters
  • lines (list[dict]) – A list of dicts describing the lines.

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

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

Returns

list[bpy.types.Object]