Dice 3D

Dice 3D
Loading the math board and drawing, please wait…
2015-12-03 10:19
This example demonstrates a 3D dice rolling process. It involves geometric construction and random number generation. Using GeoGebra commands like Polygon, Segment, Vector, etc., a dynamic 3D dice model is constructed. Suitable for middle school and above students to learn geometry and probability statistics.

GeoGebra Commands & Parameters

  1. Polygon(A_3, A_2, A_1, A_4) → πολύγ2, k_3, t_2, t_1, g_{15}
  2. Polygon(A_7, A_6, A_5, A_8) → πολύγ3, h_7, g_5, r, g_4
  3. Polygon(A_6, A_2, A_1, A_5) → πολύγ4, g_8, g_6, g_9, g_3
  4. Polygon(A_8, A_5, A_1, A_4) → πολύγ5, g_7, g_{10}, g_{11}, g_{12}
  5. Polygon(A_6, A_7, A_3, A_2) → πολύγ6, g_{13}, g_{14}, g_{16}, g
  6. Segment(B_{15}, B_{16}) → K_2
  7. Segment(B_{10}, B_9) → K
  8. Segment(B_{13}, B_{12}) → K_1
  9. Vector(B_9, B_{10}) → u
  10. Vector(B_{12}, B_{13}) → v
  11. Vector(B_{15}, B_{16}) → w
  12. Polygon(A_8, A_7, A_3, A_4) → πολύγ1, a_8, a_7, a_3, a_4
  13. Angle(A_1, A_2, A_6) → α
  14. Angle(A_1, A_4, A_8) → β
  15. Angle(A_6, A_7, A_8) → γ
  16. Angle(A_4, A_3, A_7) → δ
  17. Angle(A_1, A_4, A_3) → ε
  18. Angle(A_3, A_7, A_6) → ζ
  19. Sort(λίστα1) → λίστα2
  20. First(λίστα2) → λίστα3
  21. RandomElement(λίστα2) → η
  22. If(η ≟ ζ, κείμενο1, If[η ≟ ε, κείμενο2, If[η ≟ δ, κείμενο4, If[η ≟ γ, κείμενο5, If[η ≟ β, κείμενο6, If[η ≟ α, κείμενο3]]]]]) → κείμενο7
  23. Last(λίστα2) → λίστα4
  24. Element(λίστα4, 1) → θ
  25. If(εικ1 ≟ true, κείμενο1, If[εικ2 ≟ true, κείμενο2, If[εικ3 ≟ true, κείμενο3, If[εικ4 ≟ true, κείμενο4, If[εικ5 ≟ true, κείμενο5, If[εικ6 ≟ true, κείμενο6]]]]]) → κείμενο8
  26. If((ε ≤ 160°) ∧ (ε ≥ 20°), κείμενο2) → κ2
  27. If((ζ ≤ 150°) ∧ (ζ ≥ 30°), κείμενο1) → κ1
  28. If((α ≤ 150°) ∧ (α ≥ 30°), κείμενο3) → κ3
  29. If((δ ≥ 210°) ∧ (δ ≤ 330°), κείμενο4) → κ4
  30. If((γ ≤ 150°) ∧ (γ ≥ 30°), κείμενο5) → κ5
  31. If((β ≥ 210°) ∧ (β ≤ 330°), κείμενο6) → κ6