def clip_curvatures(vals, radius=0.03):
    """ Clips principal curvatues to be in a defined range.
        A principal of curvature of k corresponds to the curvature
        (in one direction) of a sphere or radius r = 1/k. Since
        Our mesh has somewhat of a low resolution, so we don't
        want to consider curvatures much higher than some threshhold.
        vals:
            the principal curvatures to clip
        radius:
            the radius of the smallest sphere to consider, in meters
    """
    print("!!!!!!!!! {:.6f} - {:.6f}".format(vals.max(), vals.min()))
    max_val = 1.0 / radius
    vals[vals > max_val] = max_val
    vals[vals < -max_val] = -max_val
    return vals