PointcloudObject

class PointcloudObject[source]

Bases: compas_view2.objects.bufferobject.BufferObject

Object for displaying COMPAS point geometry.

Parameters
data:class: compas.datastructures.Pointcloud

Pointcloud to be displayed.

namestring

Name of the object.

is_selectedbool

Whether the object is selected.

colorlist

Float rgb color for point cloud.

colorslist

list of rgb colors for each points, length must equal to number of points. If provided, the color parameter will be ignored.

sizefloat

The point size to be drawn on screen.

Raises
ValueError

If number of colors does not equal to number of points.

Attributes
colorslist

list of point colors

Inherited Methods

add

build

Build an object class according to its corrensponding data type

create

draw

Draw the object from its buffers

draw_instance

Draw the object instance for picking

init

Initialize the object

make_buffer_from_data

Create buffers from point/line/face data.

make_buffers

Create all buffers from object's data

register

Register an object class to its corrensponding data type

remove

update

Update the object

update_buffer_from_data

Update existing buffers from point/line/face data.

update_buffers

Update all buffers from object's data