draw_surfaces

compas_rhino.utilities.draw_surfaces(surfaces, **kwargs)[source]

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

Parameters

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

Returns

list[System.Guid]

Notes

A surface dict has the following schema:

Schema({
    'surface': compas.geometry.Surface,
    Optional('name', default=''): str,
    Optional('color', default=None): And(lambda x: len(x) == 3, all(0 <= y <= 255 for y in x)),
    Optional('layer', default=None): str
})