L = (11.5, -3)
h = 2.3000000000000003 (slider from 0 to 15, step 0.1)
A = (0.48, 3.999999999999996)
B = (6.5, 4)
C = (2.5, 5.5)
D = (8.5, 5.5)
a = Segment(C, B)
b = Segment(A, D)
E = (4.5, -2.75)
c = Segment(A, E)
d = Segment(E, B)
e = Segment(E, D)
f = Segment(D, C)
g = Segment(C, A)
h_3 = Segment(A, B)
i = Segment(B, D)
F = Intersect(a, b)
j = Segment(F, E)
G: (x(E), y(E) + h / 2)
k = Line(G, a)
l = Line(G, b)
H = Intersect(d, k)
J = Intersect(c, l)
m = Segment(E, C)
I = Intersect(k, m)
K = Intersect(e, l)
poly1, h_1, k_1, i_1, j_1 = Polygon(H, K, I, J)
poly2, j_2, e_1, k_2, h_2 = Polygon(J, E, K, H)
M: (x(L) + 2, y(L))
n = Segment(L, M)
O: (x(L) + 1, y(L) + 0.75)
N: (x(O) + 2, y(O))
p = Segment(M, N)
q = Segment(N, O)
r = Segment(O, L)
P: (x(L), y(L) + 7.5)
s = Segment(L, P)
Q: (x(O), y(O) + 7.5)
t = Segment(O, Q)
R: (x(Q) + 2, y(Q))
a1 = Segment(N, R)
S: (x(P) + 2, y(P))
b1 = Segment(M, S)
c1 = Segment(P, S)
d1 = Segment(S, R)
e1 = Segment(R, Q)
f1 = Segment(Q, P)
T: (x(L), y(L) + h / 2)
g1 = Line(T, n)
h1 = Line(T, r)
U = Intersect(t, h1)
V = Intersect(b1, g1)
i1 = Line(V, r)
j1 = Line(U, n)
Z = Intersect(a1, j1)
poly3, t_1, v, z, u = Polygon(T, V, Z, U)
poly4, l_1, m_1, n_1, z_1, v_1, t_2 = Polygon(L, M, N, Z, V, T)
text2: "Volume 2 = " + (h 4)
text1: "Volume 1 = " + (h h h 4 / 75)
W = Midpoint(T, U)
AffichageVolumes = 0 (slider from 0 to 1, step 1)
k1 = Segment(U, V)
l1 = Segment(T, Z)
A1 = Intersect(k1, l1)