WIP: Vers le voisinage de Moore 3D, toujours...

This commit is contained in:
Jean Sirmai 2023-08-14 19:57:09 +02:00
parent 7d908a5468
commit 8301834532
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 67 additions and 27 deletions

View File

@ -406,16 +406,10 @@ bool compute_space(int cube_side,
int s = step_z * cube_side + step_y * cube_side + step_x * cube_side + 1;
int side_size = cube_side; /* IT IS A CUBE ! space_x = space_y = space_z */
draw_a_central_star_in_a_cubic_space (lines_origin, s, side_size);
draw_EW_ZA_SN_in_a_cubic_space (lines_origin, s, side_size);
// draw_EW_ZA_SN_in_a_cubic_space (lines_origin, s, side_size);
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 + 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
@ -434,6 +428,7 @@ bool compute_space(int cube_side,
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 */
@ -442,16 +437,61 @@ bool compute_space(int cube_side,
/* step_y 4 6 8 */
/* |side/2| 1 (f) 2 3 4 */
/* ------------------------------------------------------------------------*/
/* N-S C +/- f */
/* Z-A C +/- side x f */
/* E-W C +/- side x side x f */
/* ----- if side = 3 ---------------------------------------------------*/
/* W 4 (- 9) 12 (- 50) 24 (- 147) */
/* E 22 (+ 9) 112 (+ 50) 318 (+ 147) */
/* A 10 (- 3) 52 (- 10) 150 (- 21) */
/* Z 16 (+ 3) 72 (+ 10) 192 (+ 21) */
/* S 12 (- 1) 60 (- 2) 168 (- 3) */
/* N 14 (+ 1) 64 (+ 2) 174 (+ 3) */
/*------------------------------------------------------------------------*/
/* N-S C +/- f */
/* Z-A C +/- side x f */
/* E-W C +/- side x side x f */
/* */
// draw_a_central_star (lines_origin, s + 14 * 6);
/* EZ 25 22+3 */
/* EA 19 22-3 */
/* ES 21 22-1 */
/* EN 23 22+1 */
/* WZ 7 4+3 */
/* WA 1 4-3 */
/* WS 3 4-1 */
/* WN 5 4+1 */
/* ZE 25 16+9 */
/* ZW 7 16-9 */
/* ZS 15 16-1 */
/* ZN 17 16+1 */
/* AE 19 10+9 */
/* AW 1 10-9 */
/* AS 9 10-1 */
/* AN 11 10+1 */
/* */
/* SE 21 12+9 */
/* SW 3 12-9 */
/* SZ 15 12+3 */
/* SA 9 12-3 */
/* */
/* NE 23 14+9 */
/* NW 5 14-9 */
/* NZ 17 14+3 */
/* NA 11 14-3 */
/* */
/* */
/* ----------------------- if side = 5 ----------------------------------*/
/* WN 12 (- 50) 24 (- 147) */
/* ZS 10 70 */
/*-------------------------------------------------------------*/

View File

@ -559,7 +559,7 @@ static void get_model_data_and_user_preferences(){
* JE CHOISIS DES CUBES AYANT DES COTÉS IMPAIRS POUR QU'IL Y AIT UNE CASE CENTRALE
*/
cube_side = 11; // 0 < cube_side
cube_side = 3; // 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)