PointArtist

class compas_blender.artists.PointArtist(*args, **kwargs)[source]

Bases: compas_blender.artists.artist.BlenderArtist, compas.artists.primitiveartist.PrimitiveArtist

Artist for drawing points.

Parameters

point (compas.geometry.Point) – A COMPAS point.

Notes

See compas_blender.artists.PrimitiveArtist for all other parameters.

Examples

import random
from compas.geometry import Pointcloud
from compas.utilities import i_to_rgb

from compas_blender.artists import PointArtist

pcl = Pointcloud.from_bounds(10, 10, 10, 100)

for point in pcl.points:
    artist = PointArtist(point, color=i_to_rgb(random.random()))
    artist.draw()

Inherited Attributes

AVAILABLE_CONTEXTS

CONTEXT

ITEM_ARTIST

collection

color

default_color

primitive

Methods

draw

Draw the point.

Inherited Methods

build

Build an artist corresponding to the item type.

build_as

clear

draw_collection

redraw

register