diff --git a/Centre, East, West, North, South, Zenith, nAdir.png b/EWZASN + centre en 3 x 3.png similarity index 100% rename from Centre, East, West, North, South, Zenith, nAdir.png rename to EWZASN + centre en 3 x 3.png diff --git a/EWZASN + centre en 5 x 5.png b/EWZASN + centre en 5 x 5.png new file mode 100644 index 0000000..34e8974 Binary files /dev/null and b/EWZASN + centre en 5 x 5.png differ diff --git a/console -- ++.png b/console -- ++.png deleted file mode 100644 index 8d2a345..0000000 Binary files a/console -- ++.png and /dev/null differ diff --git a/side = 11.png b/side = 11.png deleted file mode 100644 index 310c05c..0000000 Binary files a/side = 11.png and /dev/null differ diff --git a/side = 21.png b/side = 21.png deleted file mode 100644 index d71d854..0000000 Binary files a/side = 21.png and /dev/null differ diff --git a/side = 5.png b/side = 5.png deleted file mode 100644 index b0b0741..0000000 Binary files a/side = 5.png and /dev/null differ diff --git a/src/graphics/buffers.c b/src/graphics/buffers.c index c0e8ae1..8bb32e1 100644 --- a/src/graphics/buffers.c +++ b/src/graphics/buffers.c @@ -389,12 +389,41 @@ bool compute_space(int cube_side, if (0) for (int i = 0; i < side_size * side_size * side_size; i ++) draw_a_central_star (lines_origin, s + i * 6); - draw_a_central_star (lines_origin, s + 4 * 6); // W - draw_a_central_star (lines_origin, s + 10 * 6); // A - draw_a_central_star (lines_origin, s + 16 * 6); // Z - draw_a_central_star (lines_origin, s + 22 * 6); // E - draw_a_central_star (lines_origin, s + 14 * 6); // N - draw_a_central_star (lines_origin, s + 12 * 6); // S +// draw_a_central_star (lines_origin, s + 4 * 6); // W +// draw_a_central_star (lines_origin, s + 10 * 6); // A +// draw_a_central_star (lines_origin, s + 12 * 6); // S +// draw_a_central_star (lines_origin, s + 14 * 6); // N +// draw_a_central_star (lines_origin, s + 16 * 6); // Z +// draw_a_central_star (lines_origin, s + 22 * 6); // E +// + draw_a_central_star (lines_origin, s + 12 * 6); // W + draw_a_central_star (lines_origin, s + 112 * 6); // E + draw_a_central_star (lines_origin, s + 72 * 6); // Z + draw_a_central_star (lines_origin, s + 52 * 6); // A + draw_a_central_star (lines_origin, s + 60 * 6); // S + draw_a_central_star (lines_origin, s + 64 * 6); // N + // + printf("side = %d step_x = %d step_y = %d step_z = %d\n",\ + cube_side, (cube_side + 1) * (cube_side + 1), cube_side + 1, 1); + + /* 3 5 7 11 */ + /*-------------------------------------------------------------*/ + /* C 13 62 171 */ + /* step_x 16 36 49 */ + /* step_y 4 6 8 */ + /* */ + /*-------------------------------------------------------------*/ + /* W 4 12 */ + /* E 22 112 */ + /* A 10 52 */ + /* Z 16 72 */ + /* S 12 60 */ + /* N 14 64 */ + + + /* ZS 10 70 */ + /*-------------------------------------------------------------*/ + /* 13-4=7 63-12=51 */ // draw_line (lines_origin, 3500, 2422);// further experiments... diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index ed2c45d..705e898 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -553,13 +553,13 @@ GLuint arrows[] = { static void get_model_data_and_user_preferences(){ -/* DANS UN CUBE DE COTE 3 LE CENTRE EST À 3 x 3 x 3 = 27 / 2 = 14 >> 13 * 6 - * DANS UN CUBE DE COTE 5 LE CENTRE EST À 5 x 5 x 5 = 125 / 2 = 62 >> 62 * 6 - * DANS UN CUBE DE COTE 7 LE CENTRE EST À 7 x 7 x 7 = 342 / 2 = 171 >> 171 * 6 +/* DANS UN CUBE DE COTE 3 LE CENTRE EST À 3 x 3 x 3 = 27 / 2 = 13.5 >> 13 * 6 + * DANS UN CUBE DE COTE 5 LE CENTRE EST À 5 x 5 x 5 = 125 / 2 = 62.5 >> 62 * 6 + * DANS UN CUBE DE COTE 7 LE CENTRE EST À 7 x 7 x 7 = 342 / 2 = 171.5 >> 171 * 6 * JE CHOISIS DES CUBES AYANT DES COTÉS IMPAIRS POUR QU'IL Y AIT UNE CASE CENTRALE */ - cube_side = 3; // 0 < cube_side + cube_side = 5; // 0 < cube_side int arrows_array_size = 0; while (*(arrows + arrows_array_size) != un_nombre_ad_hoc_que_je_mets_a_la_fin_du_tableau_pour_en_mesurer_la_taille) @@ -569,7 +569,7 @@ static void get_model_data_and_user_preferences(){ arrows_nb = arrows_array_size / 5; // assert : l'emplacement des flèches est contraint par space_size_x, y, z et le nombre de sites - central_stars_nb = cube_side * cube_side * cube_side; + central_stars_nb = 1 + 6; // cube_side * cube_side * cube_side; pref_show_grid = 0; // 0, 1, 2, 3, 5, 6, 10, 15, 30, etc // xyz, 0, x, y, z, xy, xz, yz, xyz pref_test_diagonal = 0;