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.
Methods
__init__
(P[, s, c])add_artist
(figure)Add artist to figure.
set_data
(P)Update data.
Attributes
Expose geometries.
- 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.