WIP: On s'approche vraiment de 'LA SOLUTION' ! Domaine de définition plus étendu. Is OK !
This commit is contained in:
parent
508f7e0c11
commit
3c250968a8
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -314,7 +314,7 @@ static bool compute_space_3D (int x,
|
||||||
float i, j, k, vx, vy, vz, max = maximum * CORRC;
|
float i, j, k, vx, vy, vz, max = maximum * CORRC;
|
||||||
|
|
||||||
printf("max(%d,%d,%d) = %d; size_x / max = %6.3f; size_y / max = %6.3f; size_z / max = %6.3f\n",\
|
printf("max(%d,%d,%d) = %d; size_x / max = %6.3f; size_y / max = %6.3f; size_z / max = %6.3f\n",\
|
||||||
x - 1, (y - 1) - 1, z - 1, maximum, (x - 1) / max, (y - 1) / max, (z - 1) / max);
|
x - 1, y - 1, z - 1, maximum, (x - 1) / max, (y - 1) / max, (z - 1) / max);
|
||||||
|
|
||||||
for (i = 0; i < x; i++){
|
for (i = 0; i < x; i++){
|
||||||
for (j = 0; j < y; j++){
|
for (j = 0; j < y; j++){
|
||||||
|
@ -334,7 +334,7 @@ static bool compute_space_3D (int x,
|
||||||
*(color_origin + colors_ndx + 1) = 3 * vy / 2;
|
*(color_origin + colors_ndx + 1) = 3 * vy / 2;
|
||||||
*(color_origin + colors_ndx + 2) = vz;
|
*(color_origin + colors_ndx + 2) = vz;
|
||||||
|
|
||||||
colors_ndx += 3; // if (C) printf(" => colors_ndx = %3d\n", colors_ndx);
|
colors_ndx += 3; // if (C) printf(" => colors_ndx = %3d\n", colors_ndx);23.
|
||||||
|
|
||||||
if (P) printf("(%1.0f*%1.0f*%1.0f)<>[%6.3f %6.3f %6.3f] ", i, j, k, vx, vy, vz);
|
if (P) printf("(%1.0f*%1.0f*%1.0f)<>[%6.3f %6.3f %6.3f] ", i, j, k, vx, vy, vz);
|
||||||
}
|
}
|
||||||
|
@ -346,8 +346,7 @@ static bool compute_space_3D (int x,
|
||||||
for (int u = 0; u < y; u ++){
|
for (int u = 0; u < y; u ++){
|
||||||
for (int w = 0; w < z; w ++){
|
for (int w = 0; w < z; w ++){
|
||||||
*(line_origin + lines_ndx) = w + z * u; lines_ndx += 1;
|
*(line_origin + lines_ndx) = w + z * u; lines_ndx += 1;
|
||||||
*(line_origin + lines_ndx) = x * y * z
|
*(line_origin + lines_ndx) = x * y * z - y * z + w + z * u; lines_ndx += 1;
|
||||||
- y * z + w + z * u; lines_ndx += 1;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -359,7 +358,7 @@ static bool compute_space_3D (int x,
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int u = 0; u < x; u ++){
|
for (int u = 0; u < x; u ++){
|
||||||
for (int w = 0; w < y - 1; w ++){
|
for (int w = 0; w < z; w ++){
|
||||||
*(line_origin + lines_ndx) = z * y * u + w; lines_ndx += 1;
|
*(line_origin + lines_ndx) = z * y * u + w; lines_ndx += 1;
|
||||||
*(line_origin + lines_ndx) = z * y * u + z * (y - 1) + w; lines_ndx += 1;
|
*(line_origin + lines_ndx) = z * y * u + z * (y - 1) + w; lines_ndx += 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -539,9 +539,9 @@ GLubyte arrows[] = {
|
||||||
|
|
||||||
static void get_model_data_and_user_preferences(){
|
static void get_model_data_and_user_preferences(){
|
||||||
|
|
||||||
model_space_size_x = 10; // 0 < model_space_size_x
|
model_space_size_x = 3; // 0 < model_space_size_x
|
||||||
model_space_size_y = 4; // 0 < model_space_size_y
|
model_space_size_y = 8; // 0 < model_space_size_y
|
||||||
model_space_size_z = 3; // 0 < model_space_size_z
|
model_space_size_z = 5; // 0 < model_space_size_z
|
||||||
model_arrows_nb = 0; // assert : l'emplacement des flèches est contraint
|
model_arrows_nb = 0; // assert : l'emplacement des flèches est contraint
|
||||||
// par model_space_size_x, y, z et le nombre de sites
|
// par model_space_size_x, y, z et le nombre de sites
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue