The
cube element generates a cube sized 1x1x1 that is balanced around the coordinate system origin. By setting the
create upper base and
create lower base switches can be decided, whether the upper and the lower cube base is supposed to be generated. The element returns the
identification number of the created cube.
The texture is mapped on the cube surface to cover all 6 cube faces. The texture is divided in 2 lines each containing 3 columns. (The texture is governed by usual requirements, the texture height and width should be a power of 2). Each column contains a definition for 2 opposite faces. The first column determines the front and the rear face, the intermediate column determines the left and the right faces, and the last column determines the upper and lower face.