WIP: simplifications avant restructuration. Is OK

This commit is contained in:
Jean Sirmai 2023-07-21 09:12:02 +02:00
parent 19d9e258cc
commit 508f7e0c11
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 3 additions and 3 deletions

View File

@ -320,9 +320,9 @@ static bool compute_space_3D (int x,
for (j = 0; j < y; j++){ for (j = 0; j < y; j++){
for (k = 0; k < z; k++){ for (k = 0; k < z; k++){
vx = (2 * i / (x - 1) - 1) * ((x - 1) / max); vx = (2 * i / (x - 1) - 1) * (x - 1) / max;
vy = (2 * j / (y - 1) - 1) * ((y - 1) / max); vy = (2 * j / (y - 1) - 1) * (y - 1) / max;
vz = (2 * k / (z - 1) - 1) * ((z - 1) / max); vz = (2 * k / (z - 1) - 1) * (z - 1) / max;
*(vertex_origin + vertex_ndx + 0) = vx / 2; *(vertex_origin + vertex_ndx + 0) = vx / 2;
*(vertex_origin + vertex_ndx + 1) = vy; *(vertex_origin + vertex_ndx + 1) = vy;