A cube made of simple triangles
The Triangles class is used to construct a cube from triangles. Corner positions are defined only once and connected by indices efficiently. The cube is lit and the normals are shared between adjacent edges (hence the light looks a little funky here). A LineStrip object is used to emphasize the edges of the cube.
See also: Visualization documentation online.
Last modified: July 20 2020 14:52