WIP: Étonnez-vous, déjà, du nombre de fois où ça marche...

This commit is contained in:
Jean Sirmai 2023-10-11 21:34:56 +02:00
parent a3ff18155f
commit e509dfb6b2
Signed by: jean
GPG Key ID: FB3115C340E057E3
2 changed files with 23 additions and 13 deletions

View File

@ -872,10 +872,10 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
int rand(void);
void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min);
int arbitrary = 4;
int space_X = 3, // 1 + rand() % arbitrary,
space_Y = 3, // 1 + rand() % arbitrary,
space_Z = 3; // 1 + rand() % arbitrary;
int arbitrary = 40;
int space_X = 1 + rand() % arbitrary,
space_Y = 1 + rand() % arbitrary,
space_Z = 1 + rand() % arbitrary;
int density_max = space_X * space_Y * space_Z;
int arrows_nb = 0;//rand() % density_max;
int pref_show_grids = 1; // 0, 1, 2, 3, 5, 6, 10, 15, 30, etc

View File

@ -91,23 +91,33 @@ void write_marks_along_space_ridges (long x, long y, long z)
/* graphics_write_line (vertex_offset + 6, vertex_offset + 22); */
/* graphics_write_line (vertex_offset + 7, vertex_offset + 23); */
// for (int i = 0; i <= y; i += 2) graphics_write_line (vertex_offset + 2 + i, vertex_offset + 2 + i + 1);
/* graphics_write_line (vertex_offset + 2, vertex_offset + 3); */
/* graphics_write_line (vertex_offset + 4, vertex_offset + 5); */
int ar = 4;
for (int i = 0; i < y * x; i += 2) graphics_write_line (vertex_offset + ar + i, vertex_offset + ar + i + 1);
/* graphics_write_line (vertex_offset + 8, vertex_offset + 9); */
/* graphics_write_line (vertex_offset + 10, vertex_offset + 11); */
/* graphics_write_line (vertex_offset + 12, vertex_offset + 13); */
/* graphics_write_line (vertex_offset + 14, vertex_offset + 15); */
/* graphics_write_line (vertex_offset + 18, vertex_offset + 19); */
/* graphics_write_line (vertex_offset + 20, vertex_offset + 21); */
/* graphics_write_line (vertex_offset + 0, vertex_offset + 6); */
/* graphics_write_line (vertex_offset + 1, vertex_offset + 7); */
/* graphics_write_line (vertex_offset + 8, vertex_offset + 10); */
/* graphics_write_line (vertex_offset + 9, vertex_offset + 11); */
/* graphics_write_line (vertex_offset + 12, vertex_offset + 14); */
/* graphics_write_line (vertex_offset + 13, vertex_offset + 15); */
/* graphics_write_line (vertex_offset + 16, vertex_offset + 22); */
/* graphics_write_line (vertex_offset + 17, vertex_offset + 23); */
graphics_write_line (vertex_offset + 2, vertex_offset + 3);
graphics_write_line (vertex_offset + 4, vertex_offset + 5);
graphics_write_line (vertex_offset + 8, vertex_offset + 9);
graphics_write_line (vertex_offset + 10, vertex_offset + 11);
graphics_write_line (vertex_offset + 12, vertex_offset + 13);
graphics_write_line (vertex_offset + 14, vertex_offset + 15);
graphics_write_line (vertex_offset + 18, vertex_offset + 19);
graphics_write_line (vertex_offset + 20, vertex_offset + 21);
}