WIP: preuve graphique (six flèches vers six pôles dessinées par un trait)
This commit is contained in:
parent
650cf66c07
commit
1a8b292cab
|
@ -677,25 +677,25 @@ 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);
|
void srand(unsigned int seed); // printf ("Valeur max : %d\n", RAND_MAX); min + rand() % (max+1 - min);
|
||||||
|
|
||||||
int arbitrary = 8;
|
int arbitrary = 8;
|
||||||
int space_X = 6,//1 + rand() % arbitrary,
|
int space_X = 1 + rand() % arbitrary,
|
||||||
space_Y = 1,// + rand() % arbitrary,
|
space_Y = 1 + rand() % arbitrary,
|
||||||
space_Z = 1;// + rand() % arbitrary;
|
space_Z = 1 + rand() % arbitrary;
|
||||||
int density_max = space_X * space_Y * space_Z;
|
int density_max = space_X * space_Y * space_Z;
|
||||||
int max = fmax(space_X, space_Y); max = fmax(max, space_Z);
|
int max = fmax(space_X, space_Y); max = fmax(max, space_Z);
|
||||||
|
|
||||||
int show_space_design = 1, print_arrows_data = 1;
|
int show_space_design = 1, print_arrows_data = 0;
|
||||||
|
|
||||||
int load = 0, site = 0, x = 0, y = 0, z = 0;
|
int load = 0, site = 0, x = 0, y = 0, z = 0;
|
||||||
int specif_arrows_nb = 6;//rand() % density_max / 3;
|
int specif_arrows_nb = rand() % density_max / 3;
|
||||||
int arrows_nb = 0;
|
int arrows_nb = 0;
|
||||||
|
|
||||||
while (arrows_nb < specif_arrows_nb){
|
while (arrows_nb < specif_arrows_nb){
|
||||||
arrows_nb = set_arrow (arrows, arrows_nb,
|
arrows_nb = set_arrow (arrows, arrows_nb,
|
||||||
rand() % arbitrary, // load / weight
|
rand() % arbitrary, // load / weight
|
||||||
arrows_nb,//rand() % 6, // site,
|
rand() % 6, // site,
|
||||||
arrows_nb,//rand() % space_X, // x
|
rand() % space_X, // x
|
||||||
0,//rand() % space_Y, // y
|
rand() % space_Y, // y
|
||||||
0);//rand() % space_Z); // z
|
rand() % space_Z); // z
|
||||||
}
|
}
|
||||||
|
|
||||||
print_user_choices(arrows, arrows_nb, space_X, space_Y, space_Z, print_arrows_data, show_space_design);
|
print_user_choices(arrows, arrows_nb, space_X, space_Y, space_Z, print_arrows_data, show_space_design);
|
||||||
|
@ -775,4 +775,3 @@ void __attribute__((optimize("no-unroll-loops"))) main_test_graphics (void)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue