PointArtist
-
class
compas_rhino.artists.
PointArtist
(primitive, color=None, layer=None)[source] Bases:
compas_rhino.artists._primitiveartist.PrimitiveArtist
Artist for drawing points.
- Parameters
primitive (
compas.geometry.Point
) – A COMPAS point.
Notes
See
compas_rhino.artists.PrimitiveArtist
for all other parameters.Examples
import random from compas.geometry import Pointcloud from compas.utilities import i_to_rgb import compas_rhino from compas_rhino.artists import PointArtist pcl = Pointcloud.from_bounds(10, 10, 10, 100) compas_rhino.clear_layer("Test::PointArtist") for point in pcl.points: artist = PointArtist(point, color=i_to_rgb(random.random()), layer="Test::PointArtist") artist.draw()
Methods
build
(item, **kwargs)Build an artist corresponding to the item type.
clear
()Clear the layer containing the artist.
draw
()Draw the point.
redraw
()register
(item_type, artist_type)