WIP: et un petit paquet 3*3*3 bien emballé

This commit is contained in:
Jean Sirmai 2023-10-11 18:52:15 +02:00
parent c24e93e6df
commit ae6f151f48
Signed by: jean
GPG Key ID: FB3115C340E057E3
1 changed files with 18 additions and 26 deletions

View File

@ -52,7 +52,7 @@ void write_space_ridges (long x, long y, long z)
void write_marks_along_space_ridges (long x, long y, long z)
{
float i, j, k, vx, vy, vz, max = fmax(x, y); int kin = 0;
float i, j, k, vx, vy, vz, max = fmax(x, y);
max = fmax(max, z);
for (i = 0; i <= x; i++)
@ -76,12 +76,9 @@ void write_marks_along_space_ridges (long x, long y, long z)
|| (j == 0 && k == z && i > 0 && i < x)
|| (j == y && k == 0 && i > 0 && i < x)
|| (j == y && k == z && i > 0 && i < x)
) {
kin ++;
)
graphics_write_vertex (vx, vy, vz);
}
};
printf("n = %d\n", kin);
int vertex_offset = 8;
@ -97,35 +94,30 @@ printf("n = %d\n", kin);
graphics_write_line (vertex_offset + 10, vertex_offset + 11); //
graphics_write_line (vertex_offset + 14, vertex_offset + 15); //
graphics_write_line (vertex_offset + 18, vertex_offset + 19); //
graphics_write_line (vertex_offset + 20, vertex_offset + 21); //
graphics_write_line (vertex_offset + 12, vertex_offset + 14); //
graphics_write_line (vertex_offset + 13, vertex_offset + 15); //
graphics_write_line (vertex_offset + 16, vertex_offset + 22); //
graphics_write_line (vertex_offset + 17, vertex_offset + 23); //
/* graphics_write_line (buffer_lines_offset + 20, buffer_lines_offset + 21); */
/* graphics_write_line (buffer_lines_offset + 22, buffer_lines_offset + 23); */
graphics_write_line (vertex_offset + 18, vertex_offset + 19); //
graphics_write_line (vertex_offset + 20, vertex_offset + 21); //
/* graphics_write_line (buffer_lines_offset + 1, buffer_lines_offset + 21); */
/* graphics_write_line (buffer_lines_offset + 2, buffer_lines_offset + 22); */
graphics_write_line (vertex_offset + 0, vertex_offset + 16); //
graphics_write_line (vertex_offset + 1, vertex_offset + 17); //
/* graphics_write_line (buffer_lines_offset + 0, buffer_lines_offset + 20); */
/* graphics_write_line (buffer_lines_offset + 3, buffer_lines_offset + 23); */
/* graphics_write_line (buffer_lines_offset + 17, buffer_lines_offset + 25); */
/* graphics_write_line (buffer_lines_offset + 18, buffer_lines_offset + 26); */
/* graphics_write_line (buffer_lines_offset + 5, buffer_lines_offset + 25); */
/* graphics_write_line (buffer_lines_offset + 6, buffer_lines_offset + 26); */
graphics_write_line (vertex_offset + 2, vertex_offset + 18); //
graphics_write_line (vertex_offset + 3, vertex_offset + 19); //
//
graphics_write_line (vertex_offset + 4, vertex_offset + 20); //
graphics_write_line (vertex_offset + 5, vertex_offset + 21); //
/* graphics_write_line (buffer_lines_offset + 5, buffer_lines_offset + 25); */
/* graphics_write_line (buffer_lines_offset + 6, buffer_lines_offset + 26); */
/* graphics_write_line (buffer_lines_offset + 0, buffer_lines_offset + 1); */
/* graphics_write_line (buffer_lines_offset + 1, buffer_lines_offset + 2); */
graphics_write_line (vertex_offset + 6, vertex_offset + 22); //
graphics_write_line (vertex_offset + 7, vertex_offset + 23); //
graphics_write_line (vertex_offset + 8, vertex_offset + 10); //
graphics_write_line (vertex_offset + 9, vertex_offset + 11); //
}