Changeset 12685 for trunk/FACT++/gui
- Timestamp:
- 12/02/11 14:45:18 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/gui/BasicGlCamera.cc
r12671 r12685 940 940 void BasicGlCamera::calculatePixelsCoords() 941 941 { 942 if (pixelsCoords[0][1] >= 0.299999 && pixelsCoords[0][1] <= 0.300001)942 if (pixelsCoords[0][1] >= (0.299999-hexRadius) && pixelsCoords[0][1] <= (0.300001-hexRadius)) 943 943 return; 944 944 pixelsCoords[0][0] = 0; 945 pixelsCoords[0][1] = 0.3 ;945 pixelsCoords[0][1] = 0.3 - hexRadius; 946 946 pixelsCoords[0][2] = 0; 947 947 pixelsCoords[1][0] = 0; 948 pixelsCoords[1][1] = 0.3+ 2*hexRadius;948 pixelsCoords[1][1] = 0.3+hexRadius; 949 949 pixelsCoords[1][2] = 0; 950 950 neighbors[0][0] = 1; … … 997 997 break; 998 998 }; 999 // pixelsCoords[i][1] -= hexRadius; 999 1000 1000 1001 updateNeighbors(i); … … 1044 1045 cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k]; 1045 1046 1046 // cVertex[1] -= hexRadius;1047 1048 1047 bool found = false; 1049 1048 for (int k=0;k<numVertices;k++) … … 1074 1073 cVertex[k] = hexcoords[j][k]*hexRadius + pixelsCoords[i][k]; 1075 1074 1076 // cVertex[1] -= hexRadius;1077 1078 1075 for (int k=0;k<numVertices;k++) 1079 1076 {
Note:
See TracChangeset
for help on using the changeset viewer.