28 #if defined(HAVE_CONFIG_H)
31 #if defined(HAVE_GL_GL_H)
33 #elif defined(HAVE_OPENGL_GL_H)
34 #include <OpenGL/gl.h>
46 int corner1[16][6][4] = {
193 for (i = 0; i < 6; ++i) {
194 for (j = 0; j < 4; ++j) {
206 int i0, i1, i2, i, ibr, sw[4];
207 float ldiag[4], bdiag[4][3];
211 for (i0 = -1; i0 <= 1; ++i0) {
212 for (i1 = -1; i1 <= 1; ++i1) {
213 for (i2 = -1; i2 <= 1; ++i2) {
217 if (i0 == 0 && i1 == 0 && i2 == 0)
continue;
221 for (i = 0; i < 3; ++i)
222 bragg[ibr][i] = ((GLfloat)i0 *
bvec[0][i]
223 + (GLfloat)i1 *
bvec[1][i]
224 + (GLfloat)i2 *
bvec[2][i]) * 0.5f;
240 for (ibr = 1; ibr < 26; ibr++) {
247 for (i = 0; i < 3; i++) {
253 for (i = 0; i < 4; i++)
254 ldiag[i] = bdiag[i][0] * bdiag[i][0] + bdiag[i][1] * bdiag[i][1] + bdiag[i][2] * bdiag[i][2];
265 GLfloat eigmin, eigmax, matmin, matmax;
268 *
terminal << wxT(
" ## Max. and Min. of each bands #######################\n");
270 *
terminal << wxT(
" Band Eig_Min. Eig_Max Mat_Min Mat_Max\n");
271 for (ib = 0; ib <
nb; ib++) {
272 eigmax =
eig0[ib][0][0][0];
273 eigmin =
eig0[ib][0][0][0];
274 matmax =
mat0[ib][0][0][0][0];
275 matmin =
mat0[ib][0][0][0][0];
276 for (i0 = 0; i0 <
ng0[0]; ++i0) {
277 for (i1 = 0; i1 <
ng0[1]; ++i1) {
278 for (i2 = 0; i2 <
ng0[2]; ++i2) {
279 if (
eig0[ib][i0][i1][i2] > eigmax) eigmax =
eig0[ib][i0][i1][i2];
280 if (
eig0[ib][i0][i1][i2] < eigmin) eigmin =
eig0[ib][i0][i1][i2];
281 if (
mat0[ib][i0][i1][i2][0] > matmax) matmax =
mat0[ib][i0][i1][i2][0];
282 if (
mat0[ib][i0][i1][i2][0] < matmin) matmin =
mat0[ib][i0][i1][i2][0];
286 *
terminal << wxString::Format(wxT(
" %d %f %f %f %f\n"),
287 ib + 1, eigmin, eigmax, matmin, matmax);