def subdivideLineSegment(pts):
    out = [pts[0]]
    for i in range(1, len(pts)):
        out.append(pts[i-1] + (pts[i] - pts[i-1]) * .5)
        out.append(pts[i])
    return np.array(out)
dataset/ETHPy150Open google/roboto/scripts/lib/fontbuild/curveFitPen.py/subdivideLineSegment/original