Construis le solide proposé en utilisant
les points qui sont déjà placés sur les 
arêtes du cube.

Afficher/Cacher l'octaèdre

b: 1 / sqrt(2)
A: (b, 0, 0)
B: ((-b), 0, 0)
C: (0, b, 0)
D: (0, (-b), 0)
E: (0, 0, b)
F: (0, 0, (-b))
a = Segment(E, B)
c = Segment(B, F)
d = Segment(F, A)
e = Segment(A, E)
f = Segment(E, D)
g = Segment(D, F)
h = Segment(F, C)
i = Segment(C, E)
j = Segment(B, D)
k = Segment(D, A)
l = Segment(A, C)
m = Segment(C, B)
G, H = partage_en(E, C)
I, J = partage_en(C, B)
K, L = partage_en(B, F)
M, N = partage_en(F, C)
O, P = partage_en(C, A)
Q, R = partage_en(A, E)
U, V = partage_en(D, F)
W, Z = partage_en(F, A)
A_1, B_1 = partage_en(B, D)
C_1, D_1 = partage_en(A, D)
E_1, F_1 = partage_en(E, B)
n = true
G_1 = (-4, 4)
H_1 = (0, 2)
p = Segment(G_1, H_1)
I_1 = (6, 4)
q = Segment(H_1, I_1)
J_1 = (2, 6)
r = Segment(I_1, J_1)
s = Segment(J_1, G_1)
K_1 = (1, 9)
t = Segment(K_1, G_1)
a_1 = Segment(K_1, H_1)
b_1 = Segment(K_1, J_1)
c_1 = Segment(K_1, I_1)
L_1 = (1, -1)
d_1 = Segment(L_1, I_1)
e_1 = Segment(L_1, G_1)
f_1 = Segment(L_1, H_1)
g_1 = Segment(L_1, J_1)
O_1, P_1 = partage_en(K_1, I_1)
Q_1, R_1 = partage_en(I_1, H_1)
S_1, T_1 = partage_en(G_1, H_1)
U_1, V_1 = partage_en(G_1, J_1)
W_1, Z_1 = partage_en(J_1, I_1)
A_2, B_2 = partage_en(I_1, L_1)
C_2, D_2 = partage_en(L_1, G_1)
E_2, F_2 = partage_en(L_1, J_1)
G_2, H_2 = partage_en(K_1, J_1)
I_2, J_2 = partage_en(K_1, H_1)
M_1, N_1 = partage_en(K_1, G_1)
poly1, m_1, i_2, o_1, g_2 = Polygon(M_1, I_2, O_1, G_2)
K_2, L_2 = partage_en(H_1, L_1)
poly2, k_2, r_1, j_2, t_1 = Polygon(K_2, R_1, J_2, T_1)
poly3, p_1, z_1, a_2, q_1 = Polygon(P_1, Z_1, A_2, Q_1)
poly5, o_2, i_1, j_1, r_2, q_2, p_2 = Polygon(O_1, I_2, J_2, R_1, Q_1, P_1)
poly6, q_3, a_3, b_2, l_2, k_1, r_3 = Polygon(Q_1, A_2, B_2, L_2, K_2, R_1)
poly7, m_2, i_3, j_3, t_2, s_2, n_2 = Polygon(M_1, I_2, J_2, T_1, S_1, N_1)
poly4, d_2, s_1, t_3, k_3, l_1, c_2 = Polygon(D_2, S_1, T_1, K_2, L_2, C_2)
M_2 = Intersect(t, a_1)
N_2 = Intersect(b_1, o_1)
h_1 = Segment(M_2, N_2)
O_2 = Intersect(d_1, e_1)
P_2 = Intersect(g_1, b_2)
n_1 = Segment(O_2, P_2)
Q_2 = Intersect(p, s)
R_2 = Intersect(s, s_2)
e_2 = Segment(Q_2, R_2)
S_2 = Intersect(q, r)
T_2 = Intersect(r, p_1)
f_2 = Segment(S_2, T_2)
T, U_2 = partage_en(E, D)

Tool: partage_en_3_3d (command partage_en)
partage_en[ <Point>, <Point> ]
Input: A, B
Output: C, D

C: (x(B) / 3 + (2 * x(A) / 3), y(B) / 3 + (2 * y(A) / 3), z(B) / 3 + (2 * z(A) / 3))
D: ((2 * x(B) / 3) + x(A) / 3, (2 * y(B) / 3) + y(A) / 3, (2 * z(B) / 3) + z(A) / 3)