BoxObject

class compas_view2.objects.BoxObject(data, **kwargs)[source]

Bases: compas_view2.objects.meshobject.MeshObject

Object for displaying COMPAS box geometry.

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

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