34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
// SI JE CALCULE LA POSITION D'UNE ÉTOILE CENTRALE EN FONCTION DE i, j, k
|
|
// step_z = 1, step_y = space_Z + 1, step_x = (space_Z + 1) * (space_Y + 1)
|
|
// s = step_z * space_Z + step_y * space_Y + step_x * space_X + 1
|
|
// s + cubes_nb * 3 - 3
|
|
// à (i * step_x + j * step_y + k * step_z) * 6,
|
|
// JE DOIS RAJOUTER LA VALEUR DELTA
|
|
|
|
/* side step_x step_y step_z n delta */
|
|
/* ---------------------------------------------------------- */
|
|
/* 3 16 4 1 149 3 */
|
|
/* 5 36 6 1 588 10 */
|
|
/* 7 64 8 1 1538 53 */
|
|
/* 9 100 10 1 3184 156 */
|
|
/* 11 144 12 1 5375 343 */
|
|
/* 13 196 14 1 9332 638 */
|
|
/* 15 256 16 1 14218 1065 */
|
|
/* 17 324 18 1 20568 1648 */
|
|
/* 19 400 20 1 28574 2411 */
|
|
/* 21 484 22 1 38428 3378 */
|
|
|
|
|
|
/*
|
|
s = step_z * space_Z + step_y * space_Y + step_x * space_X + 1
|
|
draw_a_central_star (lines_origin, s + cubes_nb * 3 - 3);
|
|
|
|
static int draw_a_central_star(GLuint *lines_origin, int n)
|
|
{
|
|
draw_line (lines_origin, n + 0, n + 1);
|
|
draw_line (lines_origin, n + 2, n + 3);
|
|
draw_line (lines_origin, n + 4, n + 5);
|
|
return n;
|
|
}
|
|
*/
|