shapeTreeIterate