GridObject

class compas_view2.objects.GridObject(cell_size, x_cells, y_cells, background=True)[source]

Bases: compas_view2.objects.bufferobject.BufferObject

Object for displaying a grid of lines in the XY plane of the world coordinate system.

Methods

build(data, **kwargs)

Build an object class according to its corrensponding data type

create()

draw(shader[, wireframe, is_lighted])

Draw the object from its buffers

draw_instance(shader[, wireframe])

Draw the object instance for picking

draw_plane(shader)

edit()

init()

Initialize the object

make_buffer_from_data(data)

Create buffers from point/line/face data.

make_buffers()

Create all buffers from object’s data

register(dtype, vtype)

Register an object class to its corrensponding data type

update()

Update the object

update_buffer_from_data(data, buffer[, …])

Update existing buffers from point/line/face data.

update_buffers()

Update all buffers from object’s data