WIP: towards neighboor drawing

This commit is contained in:
Jean Sirmai 2023-08-14 15:36:20 +02:00
parent 4d2d88d9ce
commit aac08f2a6a
Signed by: jean
GPG Key ID: FB3115C340E057E3
8 changed files with 40 additions and 11 deletions

View File

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

View File

@ -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...

View File

@ -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;