From 853856955dc88fdf0805a2c6981cb72a26a3bc4d Mon Sep 17 00:00:00 2001 From: Jean Sirmai Date: Tue, 17 Oct 2023 12:46:14 +0200 Subject: [PATCH] =?UTF-8?q?WIP:=20v=C3=A9rif=20en=20cours=20:=20le=20nombr?= =?UTF-8?q?e=20de=20vertex=20a=20l'air=20bon;=20le=20pb=20est=20du=20c?= =?UTF-8?q?=C3=B4t=C3=A9=20des=20lignes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/graphics/graphics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/graphics/graphics.c b/src/graphics/graphics.c index 7364b4e..19a80b5 100644 --- a/src/graphics/graphics.c +++ b/src/graphics/graphics.c @@ -678,9 +678,9 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void) void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min); int arbitrary = 30; - int space_X = 3,//1 + rand() % arbitrary, - space_Y = 3,//1 + rand() % arbitrary, - space_Z = 3;//1 + rand() % arbitrary; + 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 max = fmax(space_X, space_Y); max = fmax(max, space_Z);