WIP: 1 x 1 x 1 OK avec adresse = coeff + cubes_nb * 3 - 2
This commit is contained in:
parent
ce01d7622a
commit
5858d9578c
|
@ -442,7 +442,7 @@ if (1) printf("space_XYZ (%d*%d*%d) step_xyz (%d,%d,%d) coeff = %d = step_z *
|
||||||
for (int j = 0; j < space_Y; j++)
|
for (int j = 0; j < space_Y; j++)
|
||||||
for (int k = 0; k < space_Z; k++){
|
for (int k = 0; k < space_Z; k++){
|
||||||
rayon = radius(i, j, k, space_X, space_Y, space_Z);
|
rayon = radius(i, j, k, space_X, space_Y, space_Z);
|
||||||
if (rayon < limit_sup && rayon >= limit_inf){
|
if (rayon < limit_sup && rayon > limit_inf){
|
||||||
|
|
||||||
u = (i - space_X / 2) * step_x + (j - space_Y / 2) * step_y + (k - space_Z / 2) * step_z;
|
u = (i - space_X / 2) * step_x + (j - space_Y / 2) * step_y + (k - space_Z / 2) * step_z;
|
||||||
v = i * step_x + j * step_y + k * step_z;
|
v = i * step_x + j * step_y + k * step_z;
|
||||||
|
|
Loading…
Reference in New Issue