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)
poly1, z_2, s_2, u_2, w_2 = Polygon(Z_2, S_2, U_2, W_2)
poly2, w_1, n_2, q_2, u_1 = Polygon(W_2, N_2, Q_2, U_2)
poly3, n_1, o_2, p_2, q_1 = Polygon(N_2, O_2, P_2, Q_2)
poly4, o_1, n_3, k_2, j_2 = Polygon(O_2, N_2, K_2, J_2)
poly5, z_1, k_3, n_4, w_3 = Polygon(Z_2, K_2, N_2, W_2)
m_1 = Segment(F_2, T_1)
C_3 = Intersect(l_1, m_1)
D_3 = Intersect(k_1, m_1)
poly6, o_3, a_3, d_3, j_3 = Polygon(O_2, A_3, D_3, J_2)
poly7, o_4, a_2, b_3, p_1 = Polygon(O_2, A_3, B_3, P_2)
r_1 = Segment(P_1, Z_2)
s_1 = Segment(J_1, D_2)
E_3 = Point(b_3)
t_1 = Segment(N_1, E_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)