WIP: Vers le voisinage de Moore 3D, toujours...
This commit is contained in:
parent
7d908a5468
commit
8301834532
|
@ -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,28 +428,74 @@ 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 */
|
||||
/* step_x 16 36 49 */
|
||||
/* step_y 4 6 8 */
|
||||
/* step_y 4 6 8 */
|
||||
/* |side/2| 1 (f) 2 3 4 */
|
||||
/*------------------------------------------------------------------------*/
|
||||
/* 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 */
|
||||
/* ------------------------------------------------------------------------*/
|
||||
/* 3 5 7 11 */
|
||||
/* ------------------------------------------------------------------------*/
|
||||
/* C 13 62 171 */
|
||||
/* step_x 16 36 49 */
|
||||
/* step_y 4 6 8 */
|
||||
/* 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) */
|
||||
/* */
|
||||
// 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 */
|
||||
/*-------------------------------------------------------------*/
|
||||
/* 13-4=7 63-12=51 */
|
||||
/* 13-4=7 63-12=51 */
|
||||
|
||||
// draw_line (lines_origin, 3500, 2422);// further experiments...
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue