52 lines
3.1 KiB
Plaintext
52 lines
3.1 KiB
Plaintext
--------------------------------------------
|
|
3 * 3 * 3
|
|
step_z * space_Z
|
|
+ step_y * space_Y
|
|
+ step_x * space_X
|
|
+ (i + 0) * step_x * 6
|
|
+ (j + 0) * step_y * 6
|
|
+ (k + 0) * step_z * 6
|
|
+ space_X * space_Y * space_Z / 2
|
|
+
|
|
12
|
|
=
|
|
space_X * space_Y * space_Z * 6 / 2
|
|
- 2
|
|
3 * 3 * 3 rayon = 0,00 i,j,k = 0, 0, 0 coeff = 39 center = 13 u = 13 delta = 12
|
|
-----------------------------------------
|
|
|
|
9 * 3 * 11 space_X = 9; space_Y = 3; space_Z
|
|
= 11;
|
|
int center = space_X * space_Y * space_Z / 2;
|
|
int step_z = 1, step_y = space_Z, step_x = space_Z * space_Y;
|
|
int coeff = step_z * space_Z + step_y * space_Y + step_x * space_X;
|
|
for ... for ... for ... rayon = 0,00 i,j,k = 0, 0, 0
|
|
int u = (i - space_X / 2) * step_x + (j - space_Y / 2) * step_y + (k - space_Z / 2) * step_z;
|
|
u = (i + 0) * step_x + (j + 0) * step_y + (k - 0) * step_z;
|
|
if (1) printf("%d*%d*%d rayon = %4.2f i,j,k = %2d,%2d,%2d \n",\
|
|
space_X, space_Y, space_Z, rayon, space_X / 2 - i, space_Y / 2 - j, space_Z / 2 - k);
|
|
draw_a_central_star(lines_origin, coeff + center + u * 6 + 12 - 3);
|
|
9 * 3 * 11 rayon = 0,00 i,j,k = 0, 0, 0 coeff = 341 center = 148 u = 148 delta = -9
|
|
-----------------------------------------------------------------------------------------------
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 1, 1, 0 coeff = 155 center = 62 u = 32 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 1, 0, 1 coeff = 155 center = 62 u = 36 delta = -1
|
|
5 * 5 * 5 rayon = 1,00 i,j,k = 1, 0, 0 coeff = 155 center = 62 u = 37 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 1, 0,-1 coeff = 155 center = 62 u = 38 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 1,-1, 0 coeff = 155 center = 62 u = 42 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 0, 1, 1 coeff = 155 center = 62 u = 56 delta = -1
|
|
5 * 5 * 5 rayon = 1,00 i,j,k = 0, 1, 0 coeff = 155 center = 62 u = 57 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 0, 1,-1 coeff = 155 center = 62 u = 58 delta = -1
|
|
5 * 5 * 5 rayon = 1,00 i,j,k = 0, 0, 1 coeff = 155 center = 62 u = 61 delta = -1
|
|
5 * 5 * 5 rayon = 0,00 i,j,k = 0, 0, 0 coeff = 155 center = 62 u = 62 delta = -1 <
|
|
5 * 5 * 5 rayon = 1,00 i,j,k = 0, 0,-1 coeff = 155 center = 62 u = 63 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 0,-1, 1 coeff = 155 center = 62 u = 66 delta = -1
|
|
5 * 5 * 5 rayon = 1,00 i,j,k = 0,-1, 0 coeff = 155 center = 62 u = 67 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = 0,-1,-1 coeff = 155 center = 62 u = 68 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = -1, 1, 0 coeff = 155 center = 62 u = 82 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = -1, 0, 1 coeff = 155 center = 62 u = 86 delta = -1
|
|
5 * 5 * 5 rayon = 1,00 i,j,k = -1, 0, 0 coeff = 155 center = 62 u = 87 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = -1, 0,-1 coeff = 155 center = 62 u = 88 delta = -1
|
|
5 * 5 * 5 rayon = 1,41 i,j,k = -1,-1, 0 coeff = 155 center = 62 u = 92 delta = -1
|
|
-----------------------------------------------------------------------------------------------
|
|
|