Snake Path in a Cube
Loading the math board and drawing, please wait…
This example demonstrates a snake-like path inside a cube. It involves core mathematical concepts such as cube, vectors, and piecewise functions. Using GeoGebra commands like Polygon, Intersect, and OrthogonalLine, this path can be constructed. Suitable for middle school and above students to learn solid geometry and vector knowledge.
GeoGebra Commands & Parameters
Polygon(C, D, B, A) → q1, c, d, b, aIntersect(b, yAxis) → EIntersect(c, yAxis) → FIntersect(xAxis, d) → GIntersect(a, xAxis) → HOrthogonalLine(E, xOyPlane) → fOrthogonalLine(G, xOyPlane) → gOrthogonalLine(F, xOyPlane) → hOrthogonalLine(H, xOyPlane) → iPoint(f) → IPoint(yAxis) → JPlane(E, J, I) → eCircleArc(E, I, J) → k_2Point(k_2) → P_2Plane(A, B, P_2) → jCircle(A, 4, j) → pCircle(B, 4, j) → qLine(P_2, b) → lIntersect(l, p) → L, MIntersect(l, q) → N, OPolygon(A, B, N, P_2, L) → poly1, a_1, b_1, n, k_5, l_1Point(i) → PPoint(xAxis) → QCircleArc(H, Q, P) → k_3Point(k_3) → P_3Plane(C, A, P_3) → mLine(P_3, a) → sCircle(C, 4, m) → tCircle(A, 4, m) → c_1Intersect(s, t) → S, TIntersect(s, c_1) → U, VPolygon(C, A, U, P_3, S) → poly2, c_2, a_2, u, r_1, s_1Point(g) → WPoint(xAxis) → ZCircleArc(G, W, Z) → k_1Point(k_1) → P_1Plane(B, D, P_1) → oLine(P_1, d) → f_1Circle(B, 4, o) → e_1Circle(D, 4, o) → g_1Intersect(f_1, e_1) → B_1, C_1Intersect(f_1, g_1) → D_1, E_1Polygon(B, D, D_1, P_1, B_1) → poly3, b_2, d_2, h_1, i_1, j_1Point(h) → F_1Point(yAxis) → G_1CircleArc(F, F_1, G_1) → k_4Point(k_4) → P_4Plane(D, C, P_4) → kLine(P_4, c) → rCircle(D, 4, k) → d_1Circle(C, 4, k) → p_1Intersect(r, d_1) → K, RIntersect(r, p_1) → A_1, H_1Point(r) → I_1Polygon(D, C, A_1, I_1, K) → poly4, d_3, c_3, m_1, n_1, k_6Point(zAxis) → J_1Point(zAxis) → K_1Segment(J_1, K_1) → q_1PointIn(poly2) → A_2PointIn(poly2) → B_2PointIn(poly2) → C_2PointIn(poly2) → D_2PointIn(poly1) → E_2PointIn(poly1) → F_2PointIn(poly1) → G_2PointIn(poly1) → H_2PointIn(poly3) → I_2PointIn(poly3) → J_2PointIn(poly3) → K_2PointIn(poly3) → L_2Polygon(I_2, J_2, K_2, L_2) → q4, r_2, s_2, t_2, e_2PointIn(poly4) → M_2PointIn(poly4) → N_2PointIn(poly4) → O_2Point(zAxis) → R_2PointIn(poly4) → S_2Polygon(N_2, O_2, S_2, M_2) → q5, f_3, o_2, g_3, h_3Polygon(F_2, G_2, H_2, E_2) → q6, i_3, j_3, l_3, m_3Polygon(B_2, C_2, D_2, A_2) → q7, n_3, p_3, q_3, r_3Point(zAxis) → L_1Plane(L_1, xOyPlane) → wPointIn(w) → R_1PointIn(w) → S_1Point(Circle[S_1, Distance[R_1, S_1], Segment[R_1, S_1]]) → T_1Cube(R_1, S_1, T_1) → u_1, U_1, face5, face6, edge2, edge1, edge4, edge6, edge3, edge8, edge10, edge9, V_1, edge5, edge11, edge7, edge12, W_1, Z_1, T_2, face1, face3, face2, face4PointIn(q1) → U_2PointIn(q1) → V_2PointIn(q1) → W_2PointIn(q1) → Z_2Point(zAxis) → B_3Segment(A_3, B_3) → s_3Point(c_2) → C_3Line(C_3, s_3) → t_3Segment(A_3, C_3) → a_3Point(t_3) → D_3Line(D_3, a_3) → b_3Line(B_3, b_3) → e_3Intersect(t_3, e_3) → E_3Point(t_3) → F_3Line(F_3, b_3) → t_1Point(b_3) → M_1Intersect(t_1, zAxis) → N_1Intersect(b_1, j_1) → O_1Point(b_2) → Q_1Point(d_3) → Q_2OrthogonalLine(O_1, q1) → f_2OrthogonalLine(Q_2, q1) → g_2OrthogonalLine(Q_1, q1) → h_2Intersect(e_3, h_2) → G_3Intersect(t_1, h_2) → H_3Segment(O_1, A_3) → i_2Line(N_1, i_2) → j_2Line(B_3, i_2) → l_2Intersect(f_2, j_2) → I_3Intersect(g_2, j_2) → J_3Intersect(l_2, g_2) → L_3Segment(D_3, F_3) → m_2Segment(C_3, E_3) → n_2Point(m_2) → P_5Point(n_2) → P_6Plane(P_5, xOyPlane) → vPointIn(v) → O_3Polygon(O_3, P_5, 4, xOyPlane) → poly5, p_2, q_2, f_4, g_4, Q_3, R_3Plane(P_6, xOyPlane) → o_1PointIn(o_1) → K_3Polygon(K_3, P_6, 4, xOyPlane) → poly6, h_4, i_4, j_4, l_4, T_3, U_3PointIn(poly5) → N_3PointIn(poly5) → M_3PointIn(poly5) → V_3PointIn(poly5) → W_3Polygon(M_3, N_3, W_3, V_3) → q2, m_4, n_4, w_3, v_3OrthogonalLine(M_3, poly6) → p_4OrthogonalLine(V_3, poly6) → q_4OrthogonalLine(W_3, poly6) → r_4OrthogonalLine(N_3, poly6) → s_4Intersect(q_4, poly6) → Z_3Intersect(p_4, poly6) → A_4Intersect(r_4, poly6) → B_4Intersect(s_4, poly6) → C_4Polygon(A_4, C_4, B_4, Z_3) → q3, a_4, c_4, b_4, z_3Intersect(edge3, edge2) → D_4Intersect(edge10, edge12) → E_4Intersect(edge4, edge6) → F_4Point(edge9) → G_4Point(j_3) → H_4Point(l_3) → I_4Intersect(i_3, j_3) → J_4Intersect(m_3, i_3) → K_4Intersect(r_3, q_3) → L_4Point(p_3) → M_4Point(p_3) → N_4Intersect(r_3, n_3) → O_4Intersect(r_2, s_2) → Q_4PointIn(poly3) → R_4Intersect(s_2, t_2) → S_4Point(r_2) → T_4Point(v_3) → U_4Point(v_3) → V_4Intersect(n_4, w_3) → W_4Intersect(m_4, n_4) → Z_4Intersect(a_4, z_3) → A_5Point(z_3) → B_5Intersect(c_4, b_4) → C_5Intersect(a_4, c_4) → D_5Intersect(h_3, g_3) → E_5Point(g_3) → F_5Intersect(f_3, h_3) → G_5Intersect(f_3, o_2) → H_5Point(z_3) → I_5Point(z_3) → J_5Point(b_4) → K_5Point(c_4) → L_5Intersect(edge9, edge3) → M_5Intersect(edge6, edge2) → N_5Intersect(edge11, edge7) → O_5Point(edge4) → Q_5Intersect(edge5, edge1) → R_5Intersect(edge5, edge11) → V_5Intersect(edge6, edge8) → S_5Intersect(edge5, edge1) → T_5Intersect(edge1, edge3) → A_6Intersect(edge4, edge7) → B_6Midpoint(S_5, B_6) → U_5Midpoint(B_6, T_5) → C_6Midpoint(T_5, A_6) → D_6Circle(D_6, C_6, U_5) → d_4Intersect(edge9, edge11) → E_6Intersect(edge11, edge7) → F_6Intersect(edge9, edge10) → G_6Intersect(edge10, edge8) → H_6Midpoint(E_6, F_6) → I_6Midpoint(F_6, H_6) → J_6Segment(C_6, I_6) → t_4Segment(I_6, F_6) → e_4Segment(F_6, J_6) → f_5Segment(J_6, U_5) → g_5Segment(U_5, S_5) → h_5Segment(S_5, A_6) → i_5Intersect(m_4, v_3) → K_6PointIn(poly5) → L_6Segment(K_6, L_6) → j_5Intersect(n_4, w_3) → M_6Segment(L_6, M_6) → l_5Intersect(m_4, n_4) → N_6Midpoint(L_6, K_6) → O_6Midpoint(N_6, M_6) → Q_6Midpoint(M_6, L_6) → R_6Circle(O_6, R_6, Q_6) → c_5Segment(Q_6, M_6) → m_5Intersect(r_3, q_3) → S_6Point(p_3) → T_6Segment(S_6, T_6) → n_5Intersect(n_3, p_3) → U_6Segment(T_6, U_6) → p_5PointIn(poly2) → V_6Midpoint(V_6, U_6) → W_6Segment(W_6, U_6) → q_5Point(o_2) → Z_6Point(o_2) → A_7Intersect(h_3, g_3) → B_7Point(f_3) → C_7Midpoint(Z_6, A_7) → D_7Midpoint(B_7, C_7) → E_7Segment(B_7, C_7) → r_5Segment(E_7, D_7) → s_5Segment(D_7, A_7) → t_5Segment(A_7, C_7) → a_5Midpoint(S_6, T_6) → F_7Segment(F_7, W_6) → b_5Intersect(r_2, s_2) → G_7Intersect(s_2, t_2) → H_7Intersect(e_2, t_2) → I_7Point(r_2) → J_7Midpoint(I_7, J_7) → K_7Midpoint(H_7, G_7) → L_7Segment(G_7, H_7) → d_5Segment(H_7, I_7) → e_5Segment(I_7, K_7) → f_6Segment(K_7, L_7) → g_6Point(j_3) → M_7Intersect(i_3, j_3) → N_7Intersect(m_3, i_3) → O_7Point(l_3) → P_7Midpoint(M_7, N_7) → Q_7Midpoint(O_7, P_7) → R_7Segment(M_7, N_7) → h_6Segment(N_7, O_7) → i_6Segment(O_7, R_7) → j_6Segment(R_7, Q_7) → l_6Point(c_4) → S_7Point(b_4) → T_7Point(b_4) → U_7Point(a_4) → V_7Midpoint(T_7, U_7) → W_7Midpoint(U_7, V_7) → Z_7Midpoint(S_7, T_7) → A_8Circle(A_8, W_7, Z_7) → c_6Segment(A_8, T_7) → m_6Segment(T_7, U_7) → n_6Segment(U_7, V_7) → p_6Intersect(edge3, i_5) → D_8Intersect(h_5, edge8) → E_8Segment(D_8, E_8) → q_6Intersect(edge4, edge6) → F_8Intersect(edge5, edge1) → G_8Segment(F_8, G_8) → r_6Segment(D_8, G_8) → s_6Segment(F_8, E_8) → t_6Intersect(edge10, edge12) → H_8Segment(E_8, H_8) → a_6Point(e_4) → I_8Segment(I_8, H_8) → b_6Intersect(t_4, edge11) → J_8Segment(I_8, J_8) → d_6Intersect(r_6, d_4, 1) → K_8Segment(J_8, K_8) → e_6Point(b_6) → L_8Intersect(g_5, t_6) → M_8Segment(L_8, M_8) → f_7Point(q_6) → N_8Circle(K_8, M_8, N_8) → c_7Intersect(edge9, edge10) → O_8Intersect(edge10, edge8) → P_8Segment(O_8, P_8) → g_7Intersect(e_4, f_5) → Q_8Segment(P_8, Q_8) → h_7Point(edge11) → R_8Segment(Q_8, R_8) → i_7Intersect(i_7, t_4) → S_8Intersect(t_4, d_4, 1) → T_8Segment(S_8, T_8) → j_7Intersect(g_5, d_4, 1) → U_8Intersect(i_5, d_4, 1) → V_8Circle(U_8, T_8, V_8) → d_7Polygon(B_9, C_9, 4) → poly7, k_7, l_7, m_7, n_7, D_9, E_9Midpoint(E_9, C_9) → A_9