File:Eoin Avro polygons.png

From Second Life Wiki
Jump to navigation Jump to search

Original file(1,280 × 998 pixels, file size: 1.32 MB, MIME type: image/png)

Using polygon math to create mega structures. The grass base is 40 "meters" wide.

My avatar is in the center with each panel the equivalent of 10mx10m and they fly around to fit perfectly together making a polygonal wall. In this case I chose prime numbers (3, 5, 7, 11) as these would be pretty darn hard to create without using a script.

I'm surprised that more schools don't encourage this sort of playing with virtual models.

The hardest bit of thinking was to work out the distance the panel had to be from my avatar for an N-sided polygon; this turns out to be distance=panel width / (2 x tan(π/N)) (using radians). I also spent a day struggling with how to calculate rotations in SL and ended up sticking to using the llEuler2Rot() function.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current04:43, 31 January 2009Thumbnail for version as of 04:43, 31 January 20091,280 × 998 (1.32 MB)Eoin Avro (talk | contribs)Using polygon math to create mega structures.

The following page uses this file: