WIP: Effacement des flèches dans l'angle-origine OK
This commit is contained in:
parent
214eebc378
commit
776aac0855
|
@ -825,14 +825,16 @@ void main_test_graphics (void)
|
||||||
/* else for (int i = 0; i < 6; i++) */
|
/* else for (int i = 0; i < 6; i++) */
|
||||||
/* arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, i, 0, 0, 0, 0); */
|
/* arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, i, 0, 0, 0, 0); */
|
||||||
|
|
||||||
int angle = 9;
|
int mxy = MIN(space_X, space_Y); int mxyz = MIN(mxy, space_Z);
|
||||||
if (space_X > angle && space_Y > angle && space_Z > angle) for (int i = 0; i < angle; i++)
|
int min_x = MIN(mxyz, space_X), min_y = MIN(mxyz, space_Y), min_z = MIN(mxyz, space_Z);
|
||||||
for (int u = 0; u < angle; u++) for (int v = 0; v < angle; v++) for (int w = 0; w < angle; w++)
|
for (int i = 0; i < 6; i++)
|
||||||
if (u + v + w < angle * 3)
|
for (int u = 0; u < min_x; u++)
|
||||||
|
for (int v = 0; v < min_y; v++)
|
||||||
|
for (int w = 0; w < min_z; w++)
|
||||||
|
if (u + v + w < mxyz)
|
||||||
arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, i, u, v, w, 0);
|
arrows_nb = set_arrow (arrows_ptr, arrows_nb, 1, 1, 1, 0, i, u, v, w, 0);
|
||||||
|
|
||||||
if (space_X > angle && space_Y > angle && space_Z > angle)
|
printf("\n+ effacement des flèches dans l'angle-origine\
|
||||||
printf("+ effacement des flèches dans l'angle-origine\
|
|
||||||
<=> contrôle graphique de la fonction erase_arrow()\n");
|
<=> contrôle graphique de la fonction erase_arrow()\n");
|
||||||
|
|
||||||
if (1) print_user_choices(arrows_ptr, max_arrows_nb, arrows_nb, space_X, space_Y, space_Z, 0, 0);
|
if (1) print_user_choices(arrows_ptr, max_arrows_nb, arrows_nb, space_X, space_Y, space_Z, 0, 0);
|
||||||
|
|
Loading…
Reference in New Issue