Skip to content
ben-mkiv edited this page Feb 14, 2019 · 3 revisions

3D World Widget

Custom3D

widget = component.glasses.addCustom3D()
-- adds a Custom Shape to the 3D World Space
widget.addVertex(x, y, z):Integer:index
-- adds a vertex

widget.setVertex(index, x, y, z)
-- updates a vertex

widget.removeVertex(index)
-- removes a vertex

widget.getVertexCount():Integer
-- return Vertex Count

widget.setGLMODE("TRIANGLES")
-- sets the opengl mode which is used to draw
-- valid modes [TRIANGLES, TRIANGLE_STRIP]

widget.setShading("SMOOTH")
-- sets the shading mode thats used for the widget
-- valid modes: [FLAT, SMOOTH]

methods