def generate_branches(scales=None, angles=None, shift_angle=<NUM_LIT:0>):
branches = []<EOL>for pos, scale in enumerate(scales):<EOL><INDENT>angle = -sum(angles)/<NUM_LIT:2> + sum(angles[:pos]) + shift_angle<EOL>branches.append([scale, angle])<EOL><DEDENT>return branches<EOL>
Generates branches with alternative system.

    Args:
        scales (tuple/array): Indicating how the branch/es length/es develop/s from age to age.
        angles (tuple/array): Holding the branch and shift angle in radians.
        shift_angle (float): Holding the rotation angle for all branches.

    Returns:
        branches (2d-array): A array constits of arrays holding scale and angle for every branch.