draw_points

compas_rhino.utilities.draw_points(points, **kwargs)[source]

Draw points and optionally set individual name, layer, and color properties.

Parameters

labels (list[dict]) – A list of point dictionaries. See Notes, for more information about the structure of the dict.

Returns

list[System.Guid]

Notes

A point dict has the following schema:

Schema({
    'pos': And(list, lambda x: len(x) == 3),
    Optional('name', default=''): str,
    Optional('color', default=None): (lambda x: len(x) == 3 and all(0 <= y <= 255 for y in x)),
    Optional('layer', default=None): str
})