In function initNaviCube()

Change row 769 to:

Code: Select all

`z *= sqrt(2) * (1 - gap);`

Change row 736 to:

Code: Select all

`z *= sqrt(3) * (1 - 2 * gap);`

Replace row 379-404 with

Code: Select all

```
else if (shape == SHAPE_SQUARE) {
QPainterPath pathSquare;
pathSquare.moveTo(gapi * 2.0, gapi);
pathSquare.lineTo((qreal)texSize - gapi * 2.0, gapi);
pathSquare.lineTo((qreal)texSize - gapi, gapi * 2.0);
pathSquare.lineTo((qreal)texSize - gapi, (qreal)texSize - gapi * 2.0);
pathSquare.lineTo((qreal)texSize - gapi * 2.0, (qreal)texSize - gapi);
pathSquare.lineTo(gapi * 2.0, (qreal)texSize - gapi);
pathSquare.lineTo(gapi, (qreal)texSize - gapi * 2.0);
pathSquare.lineTo(gapi, gapi * 2.0);
pathSquare.lineTo(gapi * 2.0, gapi);
paint.fillPath(pathSquare, Qt::white);
paint.setPen(pen);
paint.drawPath(pathSquare);
}
else if (shape == SHAPE_CORNER) {
QPainterPath pathCorner;
float cornerHalfW = sqrt(2) * gapi;
float cornerHalfH = sqrt(1.5) * gapi;
float cornerCenter = (qreal)texSize / 2.0
pathCorner.moveTo(cornerCenter - cornerHalfW, cornerCenter);
pathCorner.lineTo(cornerCenter - cornerHalfW / 2.0, cornerCenter - cornerHalfH);
pathCorner.lineTo(cornerCenter + cornerHalfW / 2.0, cornerCenter - cornerHalfH);
pathCorner.lineTo(cornerCenter + cornerHalfW, cornerCenter);
pathCorner.lineTo(cornerCenter + cornerHalfW / 2.0, cornerCenter + cornerHalfH);
pathCorner.lineTo(cornerCenter - cornerHalfW / 2.0, cornerCenter + cornerHalfH);
pathCorner.lineTo(cornerCenter - cornerHalfW, cornerCenter);
paint.fillPath(pathCorner, Qt::white);
paint.setPen(pen);
paint.drawPath(pathCorner);
}
else if (shape == SHAPE_EDGE) {
QPainterPath pathEdge;
pathEdge.addRect(QRectF(2 * gapi, 0.5 * (qreal)texSize - sqrt(2) * gapi), (qreal)texSize - 4.0 * gapi, sqrt(2) * gapi));
paint.fillPath(pathEdge, Qt::white);
paint.setPen(pen);
paint.drawPath(pathEdge);
}
```

If you don't like hexagonal corners then maybe some changes should be done anyway because it seems createCubeFaceTex() doesn't respect it's "gap" argument. "3.46 * gapi" should be replaced with "(qreal)texSize - sqrt(2) * gapi" and "3.31 * gapi" should be replaced with "(qreal)texSize - gapi". Also z in row 736 and 769 would better be calculated from "gap" similar to my suggested changes above.