1. Tuk Bredsdorff
  2. Geodome frames for SU

Commits

Tuk Bredsdorff  committed 7402a46

Naming the strut groups.

  • Participants
  • Parent commits 4be9b78
  • Branches default

Comments (0)

Files changed (1)

File geodome_frame.rb

View file
 # create struts. And add all the struts to a group.
 def create_frame edges, center, size
 	all_struts = []
-	for edge in edges
+	edges.each_with_index { | edge, index |
 		strut = create_strut edge, center, size
-		# strut.name = 
+		strut.name = "strut #{index}"
 		all_struts << strut
-	end
+	}
 	frame_group = Sketchup.active_model.active_entities.add_group all_struts
 	frame_group.name = 'Geodome frame'
 end