function newLayer(line) {
            layer = {
                type: {},
                layer: layers.length,
                z: line.z,
            };
            layers.push(layer);
        }
Constructs a new GCodeScene.

@param element An HTMLElement in which to anchor the THREE.js scene that will visualize g-code files.