pytransform3d.visualizer.PointCollection3D#

class pytransform3d.visualizer.PointCollection3D(P, s=0.05, c=None)[source]#

Bases: Artist

Collection of points.

Parameters:
Parray, shape (n_points, 3)

Points

sfloat, optional (default: 0.05)

Scaling of the spheres that will be drawn.

carray-like, shape (3,) or (n_points, 3), optional (default: black)

A color is represented by 3 values between 0 and 1 indicate representing red, green, and blue respectively.

__init__(P, s=0.05, c=None)[source]#

Methods

__init__(P[, s, c])

add_artist(figure)

Add artist to figure.

set_data(P)

Update data.

Attributes

geometries

Expose geometries.

set_data(P)[source]#

Update data.

Parameters:
Parray, shape (n_points, 3)

Points

property geometries#

Expose geometries.

Returns:
geometrieslist

List of geometries that can be added to the visualizer.

add_artist(figure)#

Add artist to figure.

Parameters:
figureFigure

Figure to which the artist will be added.