Linnmon Table
This is my second attempt at the Furniture Visualisation Design Challenges: The LINNMON Table. It took me less than an hour to create in the VRMath2 Editor. I think that I am getting better at mental visualisation and computation of scale, location, direnction of movement in 3D space.
Below are my LOGO codes for this LINNMON Ttable. You can simply copy and paste the codes into the Logo Editor in VRMath2 Editor to recreate this table. Or you can download and collect the files at the end of this blog.
; LINNMON Table ; Length: 120cm, Width: 60cm, Height: 74cm ; CS RESET DESELECT RU 90 FD 0.725 RD 90 SETSCALE 1.2 0.03 0.6 ; table top thickness: 3cm SETMAT 0 30 ; select material from index 0, 30 in Material Chooser BOX ; table top RD 90 FD 0.355 RU 90 RT 90 FD 0.55 LT 90 FD 0.25 SETSCALE 0.04 0.72 0.04 SETMAT 5 30 CAN BK 0.5 CAN ; the two legs RD 90 FD 0.365 RU 90 SETSCALE 0.04 0.01 0.04 SETMAT 0 30 CAN FD 0.5 CAN ; the small black shows of the two legs ; From here is the shelf under the other side of the table ; There are 6 boxes scaled and placed into their locations BK 0.25 LT 90 FD 0.95 RT 90 RU 90 FD 0.015 RD 90 SETSCALE 0.3 0.04 0.5 SETMAT 5 30 BOX RU 90 FD 0.67 RD 90 BOX RD 90 FD 0.335 RU 90 SETSCALE 0.22 0.04 0.5 BOX FD 0.25 SETSCALE 0.3 0.71 0.04 BOX BK 0.375 RT 90 FD 0.13 SETSCALE 0.25 0.71 0.04 BOX BK 0.26 BOX ; Move turtle back to starting point FD 0.53 LT 90 FD 0.125 RD 90 FD 0.355 RU 90
At the end of the LOGO program, I like to return the turtle back to where it starts, so I can simply move around the turtle to place more linnmon tables if I wish. To do so, remember to get rid of the first command cs so you won't clear screen every time you run the program. If you like, you can also collect this program into a procedure and run it as below:
; LINNMON Table procedure
TO linnmon ; insert the above codes in here ; remember, no cs at the beginning END
Then whereever your turtle is, you can simple type in LINNMON and you will get a linnmon table from where your turtle is and faces.
Another important idea to achieve this is that, as you can notice, there are only Egocentric Movements in this program. This is the specialty of the Turtle Graphics don't you think?
Please leave a comment below and let me know what you think and questions you may have.
Files: linnmon_table.x3d linnmon_table.logo
- Andy's blog
- Login or register to post comments
- 9016 reads