milieu

Afficher/Cacher le cube

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

A = Intersect(xAxis, yAxis)
c = Circle(A, 1)
B = Point(c)
n = 4 (slider from 3 to 100, step 1)
a: 360 / n
l: (2 * sin(π / n))
d = Circle(B, l)
C = Intersect(c, d, 1)
b, D, E, F, G, H, I, faceBCDE, faceBEIF, faceBCGF, faceCDHG, faceDEIH, faceFGHI, arêteBE, arêteBC, arêteCD, arêteDE, arêteBF, arêteEI, arêteFI, arêteFG, arêteCG, arêteGH, arêteDH, arêteHI = Cube(B, C, xOyPlane)
e = true
J, K = partage_en(F, G)
L, M = partage_en(G, H)
N, O = partage_en(H, I)
P, Q = partage_en(I, F)
R, S = partage_en(F, B)
T, U = partage_en(B, C)
V, W = partage_en(C, G)
Z, A_1 = partage_en(C, D)
B_1, C_1 = partage_en(D, E)
D_1, E_1 = partage_en(E, B)
F_1, G_1 = partage_en(E, I)
H_1, I_1 = partage_en(H, D)
f = true
J_1 = (-3, -2)
K_1 = (3, -2)
g = Segment(J_1, K_1)
L_1 = (3, 4)
h = Segment(K_1, L_1)
M_1 = (-3, 4)
i = Segment(L_1, M_1)
j = Segment(M_1, J_1)
N_1 = (6, -0.5)
k = Segment(K_1, N_1)
O_1 = (6, 5.5)
m = Segment(N_1, O_1)
p = Segment(O_1, L_1)
P_1 = (0, 5.5)
q = Segment(O_1, P_1)
r = Segment(P_1, M_1)
Q_1 = (0, -0.5)
s = Segment(P_1, Q_1)
t = Segment(Q_1, N_1)
a_1 = Segment(Q_1, J_1)
R_1 = Point(i)
S_1 = Point(i)
T_1 = Point(g)
U_1 = Point(g)
V_1 = Point(p)
W_1 = Point(p)
Z_1 = Point(k)
A_2 = Point(k)
B_2 = Point(r)
C_2 = Point(r)
D_2 = Point(a_1)
E_2 = Point(a_1)
F_2 = Point(t)
G_2 = Point(t)
H_2 = Point(q)
I_2 = Point(q)
J_2 = Point(j)
K_2 = Point(j)
N_2 = Point(h)
O_2 = Point(h)
b_1 = Line(N_2, p)
c_1 = Line(O_2, b_1)
d_1 = Line(K_2, b_1)
e_1 = Line(J_2, b_1)
L_2 = Intersect(d_1, s)
M_2 = Intersect(e_1, s)
P_2 = Intersect(c_1, m)
Q_2 = Intersect(b_1, m)
R_2 = Intersect(g, j)
T_2 = Intersect(k, m)
V_2 = Intersect(q, r)
f_1 = Segment(C_2, V_1)
g_1 = Segment(W_1, B_2)
h_1 = Segment(H_2, S_1)
i_1 = Segment(I_2, R_1)
j_1 = Segment(G_2, U_1)
k_1 = Segment(Z_1, E_2)
l_1 = Segment(A_2, D_2)
S_2 = Intersect(g_1, i_1)
U_2 = Intersect(g_1, h_1)
W_2 = Intersect(f_1, h_1)
Z_2 = Intersect(f_1, i_1)
A_3 = Intersect(j_1, k_1)
B_3 = Intersect(h, j_1)
m_1 = Segment(F_2, T_1)
C_3 = Intersect(l_1, m_1)
D_3 = Intersect(k_1, m_1)
poly1, s_2, u_2, w_2, z_2 = Polygon(S_2, U_2, W_2, Z_2)
n_1 = Segment(K_2, N_2)
p_1 = Segment(O_2, J_2)
q_1 = Segment(O_2, P_2)
r_1 = Segment(N_2, Q_2)
s_1 = Segment(W_1, A_2)
t_1 = Segment(Z_1, V_1)
a_2 = Segment(S_1, U_1)
b_2 = Segment(T_1, R_1)
E_3 = Intersect(n_1, b_2)
F_3 = Intersect(p_1, b_2)
G_3 = Intersect(p_1, a_2)
H_3 = Intersect(n_1, a_2)
I_3 = Intersect(r_1, t_1)
J_3 = Intersect(r_1, s_1)
K_3 = Intersect(q_1, s_1)
L_3 = Intersect(q_1, t_1)
poly2, i_3, j_3, k_3, l_3 = Polygon(I_3, J_3, K_3, L_3)
poly3, h_3, g_3, f_3, e_3 = Polygon(H_3, G_3, F_3, E_3)
c_2 = Segment(I_3, S_1)
d_2 = Segment(H_3, V_1)
e_2 = Segment(G_3, Z_1)
f_2 = Segment(L_3, U_1)
M_3 = Intersect(c_2, d_2)
N_3 = Intersect(e_2, f_2)
g_2 = Segment(B_3, P_2)
h_2 = Segment(K_3, G_2)
O_3 = Intersect(g_2, h_2)
poly4, k_2, l_2, n_3, a_3, b_3, o_3 = Polygon(K_3, L_3, N_3, A_3, B_3, O_3)
i_2 = Segment(L_2, K_2)
j_2 = Segment(C_2, E_2)
m_2 = Segment(J_2, M_2)
P_3 = Intersect(i_2, j_2)
Q_3 = Intersect(j_2, m_2)
n_2 = Segment(Z_2, K_2)
p_2 = Segment(E_3, C_2)
R_3 = Intersect(n_2, p_2)
poly5, w_1, z_1, r_3, e_4, h_4, m_3 = Polygon(W_2, Z_2, R_3, E_3, H_3, M_3)
q_2 = Segment(U_2, Q_2)
r_2 = Segment(J_3, H_2)
S_3 = Intersect(q_2, r_2)
poly6, u_1, s_3, j_4, i_4, m_4, w_3 = Polygon(U_2, S_3, J_3, I_3, M_3, W_2)
poly7, i_5, m_5, h_5, g_4, n_4, l_4 = Polygon(I_3, M_3, H_3, G_3, N_3, L_3)
t_2 = Segment(D_3, J_2)
c_3 = Segment(F_3, E_2)
T_3 = Intersect(t_2, c_3)
poly8, f_4, t_3, d_3, a_4, n_5, g_5 = Polygon(F_3, T_3, D_3, A_3, N_3, G_3)
poly9, r_4, e_5, f_5, t_4, q_3, p_3 = Polygon(R_3, E_3, F_3, T_3, Q_3, P_3)
b_4 = Segment(J_3, I_3)
c_4 = Segment(P_1, Z_2)
U_3 = Intersect(b_2, t_3)
d_4 = Segment(J_1, U_3)
V_3 = Point(b_3)
k_4 = Segment(N_1, V_3)

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)