draw_faces

compas_rhino.utilities.draw_faces(faces, **kwargs)[source]

Draw faces as individual meshes and optionally set individual name, color, and layer properties.

Parameters

faces (list of dict) – A list of face dictionaries.

Returns

list of GUID

Notes

A face dict has the following schema:

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