Another Tetrahedron
Thanks to Knoblauch who created the Tetrahedron blog in VRMath2 Community. She demonstrated two methods to create a tetrahedron. Here I present another way to construct a tetrahedron using VRMath2 Editor. This is a generic way utilising the dihedral angles in 3D shapes. By this, many of the classical geometric solids such as those listed in this challenge can be easily created.
Here is the tetrahedron in 3D virtaul space.
If you are interested, you can recreate this in VRMath2 Editor. Simply copy the Logo codes below to Logo Editor in VRMath2 Editor, or you can open the Logo file as a guest visitor.
; Tetrahedron ; by Andy Yeh (2014) CLEAN ; delete all objects HOME ; turtle goes home RESET ; reset to default ; polygon to right procedure TO polygon_r :side PD REPEAT :side [ FD 1 RT 360/:side NC ] PU END ; polygon to left procedure TO polygon_l :side PD REPEAT :side [ FD 1 LT 360/:side NC ] PU END ; start construction MAKE "angle 70.5288 ; dihedral angle FACE ; draw face polygon_r 3 TL :angle polygon_r 3 RT 60 TR 180 - :angle polygon_r 3 FD 1 RT 120 TL 180 - :angle polygon_l 3
Please leave a comment below if any questions.
Files: tetrahedron.x3d tetrahedron.logo
- Andy's blog
- Login or register to post comments
- 3255 reads