Hexagonal Pyramid Construction Example

Hexagonal Pyramid Construction Example
Loading the math board and drawing, please wait…
2019-06-11 14:19
This example demonstrates the construction of a hexagonal pyramid. It involves symmetry and piecewise functions in solid geometry. Using GeoGebra commands such as Random and If, the parameters of the hexagonal pyramid can be dynamically adjusted to observe its changes. Suitable for high school students and teachers.

GeoGebra Commands & Parameters

  1. Random(3, 10) → a1
  2. Random(1, 2) → r
  3. If(r ≟ 1, a0, a2) → a
  4. If(r ≟ 1, b0, b2) → b
  5. If(r ≟ 1, c0, c2) → c
  6. Random(1, 4) → e
  7. If(g > 999, floor(g / 1000) + "," + (Mod[g, 1000]), "" + g) → text38
  8. If(g1 > 999, floor(g1 / 1000) + "," + (Mod[g1, 1000]), "" + g1) → text39
  9. If(g2 > 999, floor(g2 / 1000) + "," + (Mod[g2, 1000]), "" + g2) → text40
  10. If(g3 > 999, floor(g3 / 1000) + "," + (Mod[g3, 1000]), "" + g3) → text41
  11. If(l1 > 999, floor(l1 / 1000) + "," + (Mod[l1, 1000]), "" + l1) → text61
  12. If(l2 > 999, floor(l2 / 1000) + "," + (Mod[l2, 1000]), "" + l2) → text62
  13. If(l3 > 999, floor(l3 / 1000) + "," + (Mod[l3, 1000]), "" + l3) → text63
  14. If(l4 > 999, floor(l4 / 1000) + "," + (Mod[l4, 1000]), "" + l4) → text64
  15. If(i ≟ 1, "คุณเลือกข้อ ก.", If[i ≟ 2, "คุณเลือกข้อ ข.", If[i ≟ 3, "คุณเลือกข้อ ค.", "คุณเลือกข้อ ง."]]) → text81
  16. If(i ≟ e, "ถูกค่ะ", "ผิดค่ะ ข้อตัวอักษรสีน้ำเงินนะคะ") → text82

AI Drawing Prompt Reference

Draw a hexagonal pyramid by first randomly setting the base edge length between 3 and 10, and the height between 1 and 2. Based on the random number, determine the distance from the base center to the apex, then draw the base and apex. Next, randomly set the base rotation angle and adjust the apex position accordingly. Finally, connect the apex to each vertex of the base to form the hexagonal pyramid.
The prompt above was compiled from the original drawing commands and is for reference only.