POSTUP:

1) T1 - Spojování

2) T2 - KOUT

3) T1 - Spojování

1

4) Nový bod řezu: 1

5) T2 - KOUT

6) T1 - Spojování

2

7) Nový bod řezu: 2

KONEC!

B = (2, 2, 0)
C = (-2, 2, 0)
C_1 = (2, -2, 0)
D = (-2, -2, 0)
a, D_2, A, F, G, H, E, faceABEF, faceAFJG, faceABHG, faceBEIH, faceEFJI, faceGHIJ, edgeAF, edgeAB, edgeBE, edgeEF, edgeAG, edgeFJ, edgeGJ, edgeGH, edgeBH, edgeHI, edgeEI, edgeIJ = Cube(B, C, xOyPlane)
V = Midpoint(H, F)
b = Segment(A, V)
c = Segment(B, V)
d = Segment(C, V)
e = Segment(D, V)
P = Point(edgeAF)
R = Point(d)
Q = Point(e)
f = Segment(Q, R)
g = Ray(Q, R)
h = Ray(D, C)
K_1 = Intersect(h, g)
i = Line(P, K_1)
I = Intersect(edgeAB, i)
j = Segment(R, I)
k = Segment(I, P)
l = Ray(D, A)
K_2 = Intersect(i, l)
m = Ray(Q, K_2)
J = Intersect(b, m)
n = Segment(P, J)
p = Segment(J, Q)
poly1, p_1, i_1, r, q, j_1 = Polygon(P, I, R, Q, J)