Weld edges

You can only use the return statement from within a method.


Just grep the objects from your collections, it’s faster and is better understandable:

faces = entities.grep(Sketchup::Face)

I suggest you read a book on the Ruby basics.