WIP: Je tiens qq. chose de solide, c'est sûr. Mais ...
This commit is contained in:
parent
7b3e2b889a
commit
67022a104b
|
@ -324,7 +324,7 @@ static bool compute_space_3D (int space_size_x,
|
||||||
y = (2 * j / space_size_y - 1) * (space_size_y / max);
|
y = (2 * j / space_size_y - 1) * (space_size_y / max);
|
||||||
z = (2 * k / space_size_z - 1) * (space_size_z / max);
|
z = (2 * k / space_size_z - 1) * (space_size_z / max);
|
||||||
|
|
||||||
*(vertex_origin + vertex_ndx + 0) = x;
|
*(vertex_origin + vertex_ndx + 0) = x / 2;
|
||||||
*(vertex_origin + vertex_ndx + 1) = y;
|
*(vertex_origin + vertex_ndx + 1) = y;
|
||||||
*(vertex_origin + vertex_ndx + 2) = z;
|
*(vertex_origin + vertex_ndx + 2) = z;
|
||||||
|
|
||||||
|
@ -332,7 +332,7 @@ static bool compute_space_3D (int space_size_x,
|
||||||
// if (V) printf(" => vertex_ndx = %3d\n", vertex_ndx);
|
// if (V) printf(" => vertex_ndx = %3d\n", vertex_ndx);
|
||||||
|
|
||||||
*(color_origin + colors_ndx + 0) = x;
|
*(color_origin + colors_ndx + 0) = x;
|
||||||
*(color_origin + colors_ndx + 1) = y;
|
*(color_origin + colors_ndx + 1) = y / 2;
|
||||||
*(color_origin + colors_ndx + 2) = z;
|
*(color_origin + colors_ndx + 2) = z;
|
||||||
|
|
||||||
colors_ndx += 3;
|
colors_ndx += 3;
|
||||||
|
@ -345,7 +345,7 @@ static bool compute_space_3D (int space_size_x,
|
||||||
if (P) printf("\n");
|
if (P) printf("\n");
|
||||||
};
|
};
|
||||||
|
|
||||||
for (int u = 0; u <= space_size_x * space_size_y * 2; u ++){
|
for (int u = 0; u < vertex_ndx / 2; u ++){
|
||||||
*(line_origin + lines_ndx) = u * 2;
|
*(line_origin + lines_ndx) = u * 2;
|
||||||
lines_ndx += 1;
|
lines_ndx += 1;
|
||||||
*(line_origin + lines_ndx) = u * 2 + 1;
|
*(line_origin + lines_ndx) = u * 2 + 1;
|
||||||
|
@ -383,7 +383,7 @@ static bool compute_space_3D (int space_size_x,
|
||||||
/* *(line_origin + lines_ndx) = 23; lines_ndx += 1; */
|
/* *(line_origin + lines_ndx) = 23; lines_ndx += 1; */
|
||||||
|
|
||||||
//if (S3) printf("space 3D buffer_lines (from-to) ");
|
//if (S3) printf("space 3D buffer_lines (from-to) ");
|
||||||
printf("buffers (lines/vertex) = %d/%d ", lines_ndx / 2, vertex_ndx / 3);
|
printf("nb lines / nb vertex = %d/%d ", lines_ndx / 2, vertex_ndx / 3);
|
||||||
for (int v = 0; v < lines_ndx / 2; v ++) {
|
for (int v = 0; v < lines_ndx / 2; v ++) {
|
||||||
if (S3) printf("(%d-%d) ",\
|
if (S3) printf("(%d-%d) ",\
|
||||||
*(line_origin + 2 * v), *(line_origin + 2 * v + 1));
|
*(line_origin + 2 * v), *(line_origin + 2 * v + 1));
|
||||||
|
|
|
@ -539,10 +539,10 @@ GLubyte arrows[] = {
|
||||||
|
|
||||||
static void get_model_data_and_user_preferences(){
|
static void get_model_data_and_user_preferences(){
|
||||||
|
|
||||||
model_space_size_x = 4; // 0 < model_space_size_x
|
model_space_size_x = 3; // 0 < model_space_size_x
|
||||||
model_space_size_y = 3; // 0 < model_space_size_y
|
model_space_size_y = 2; // 0 < model_space_size_y
|
||||||
model_space_size_z = 1; // 0 < model_space_size_z
|
model_space_size_z = 1; // 0 < model_space_size_z
|
||||||
model_arrows_nb = 4; // 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
|
||||||
|
|
||||||
// pref_1D_shown_as_3D_xor_2D_space = 0; // 0 = 3D 1 = 2D
|
// pref_1D_shown_as_3D_xor_2D_space = 0; // 0 = 3D 1 = 2D
|
||||||
|
|
Loading…
Reference in New Issue