@Override
public void paintControl(PaintEvent event) {
Image image = new Image(getDisplay(), getClientArea());
GC gc = new GC(image);
gc.setBackground(new Color(getDisplay(), 0, 0, 0));
gc.fillRectangle(0, 0, image.getBounds().width,
image.getBounds().height);
Point3D size = new Point3D(mapWidth - 1, mapHeight - 1,
mapAltitude - 1); // The -1 is important :)
for (int k = 0; k < mapAltitude; k++) {
for (int i = 0; i < mapWidth; i++) {