PointcloudObject
- class compas_view2.objects.PointcloudObject(data, **kwargs)[source]
Bases:
BufferObjectObject for displaying COMPAS point geometry.
- Parameters:
data (:class: compas.datastructures.Pointcloud) – Pointcloud to be displayed.
name (string) – Name of the object.
is_selected (bool) – Whether the object is selected.
color (list) – Float rgb color for point cloud.
colors (list) – list of rgb colors for each points, length must equal to number of points. If provided, the color parameter will be ignored.
size (float) – The point size to be drawn on screen.
- Attributes:
colors (list) – list of point colors
- Raises:
ValueError – If number of colors does not equal to number of points.
Inherited Methods
Build an object class according to its corrensponding data type
Draw the object from its buffers
Draw the object instance for picking
Initialize the object
Create buffers from point/line/face data.
Create all buffers from object's data
Register an object class to its corrensponding data type
Update the object
Update existing buffers from point/line/face data.
Update all buffers from object's data