draw_pipes
-
compas_rhino.utilities.
draw_pipes
(pipes, cap=2, fit=1.0, **kwargs)[source] Draw pipes and optionally set individual name, color, and layer properties.
- Parameters
pipes (list of dict) – A list of pipe dictionaries.
- Other Parameters
cap ({0, 1, 2}, optional)
fit (float, optional)
- Returns
list of GUID
Notes
A pipe dict has the following schema:
Schema({ 'points': And(list, lambda x: all(len(y) == 3 for y in x)), 'radius': And(Or(int, float), lambda x: x > 0.0), 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, })