def rotation_profile(centerline_id, number_of_points):
    """
    Profile used for gradually rotating a branch,
    to avoid artifacts at the base.
    Currently using a root function profile, ranging from 0 to 1.

    Args:
        centerline_id (int): ID at current centerline point
        number_of_points (int): Number of centerline points

    Returns:
        float: Clamp factor, ranging from 0 to 1
    """
    return (centerline_id / number_of_points) ** 0.2