diff --git a/src/graphics/buffers.c b/src/graphics/buffers.c index 48a3eb8..a31c830 100644 --- a/src/graphics/buffers.c +++ b/src/graphics/buffers.c @@ -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 k = 0; k < space_Z; k++){ 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; v = i * step_x + j * step_y + k * step_z;