This appears to be faster than the three loops; additionally it makes it really easy to do the "cylinder extruding" which is performed for branches of the tree.