PointsConduit
- class compas_rhino.conduits.PointsConduit(*args: Any, **kwargs: Any)[source]
Bases:
compas_rhino.conduits.base.BaseConduit
A Rhino display conduit for points.
- Parameters
points (list of list of float) – The coordinates of the points.
size (list of int, optional) – The size of the points. Default is
3
for all points.color (list of str or 3-tuple) – The individual colors of the points. Default is
(255, 0, 0)
for all points.
- Attributes
size (list of float) – The size specification per point.
color (list of RGB colors) – The color specification per point.
points (list of point) – The location of every point.
Examples
from random import randint from compas_rhino.conduits import PointsConduit points = [(1.0 * randint(0, 30), 1.0 * randint(0, 30), 0.0) for _ in range(100)] conduit = PointsConduit(points) with conduit.enabled(): for i in range(100): conduit.points = [(1.0 * randint(0, 30), 1.0 * randint(0, 30), 0.0) for _ in range(100)] conduit.redraw(pause=0.1)
Methods
disable
()Disable the conduit.
enable
()Enable the conduit.
enabled
()redraw
([k, pause])Redraw the conduit.