def _get_ini_geom(link_loop, uv_layer, verts_orig, v_orig):
    '\n    Get initial geometory\n    (Get interior angle of face in vertex/UV space)\n    '
    u = link_loop['l'][uv_layer].uv
    v0 = _get_vco(verts_orig, link_loop['l0'])
    u0 = link_loop['l0'][uv_layer].uv
    v1 = _get_vco(verts_orig, link_loop['l1'])
    u1 = link_loop['l1'][uv_layer].uv
    v0v1 = (v1 - v0)
    v0v = (v_orig['vco'] - v0)
    v1v = (v_orig['vco'] - v1)
    theta0 = v0v1.angle(v0v)
    theta1 = v0v1.angle((- v1v))
    if ((theta0 + theta1) > math.pi):
        theta0 = v0v1.angle((- v0v))
        theta1 = v0v1.angle(v1v)
    u0u1 = (u1 - u0)
    u0u = (u - u0)
    u1u = (u - u1)
    phi0 = u0u1.angle(u0u)
    phi1 = u0u1.angle((- u1u))
    if ((phi0 + phi1) > math.pi):
        phi0 = u0u1.angle((- u0u))
        phi1 = u0u1.angle(u1u)
    dir0 = (u0u1.cross(u0u) > 0)
    dir1 = (u0u1.cross(u1u) > 0)
    return {'theta0': theta0, 'theta1': theta1, 'phi0': phi0, 'phi1': phi1, 'dir0': dir0, 'dir1': dir1}
Get initial geometory
(Get interior angle of face in vertex/UV space)
def _get_ini_geom(link_loop, uv_layer, verts_orig, v_orig):
    '\n    Get initial geometory\n    (Get interior angle of face in vertex/UV space)\n    '
    u = link_loop['l'][uv_layer].uv
    v0 = _get_vco(verts_orig, link_loop['l0'])
    u0 = link_loop['l0'][uv_layer].uv
    v1 = _get_vco(verts_orig, link_loop['l1'])
    u1 = link_loop['l1'][uv_layer].uv
    v0v1 = (v1 - v0)
    v0v = (v_orig['vco'] - v0)
    v1v = (v_orig['vco'] - v1)
    theta0 = v0v1.angle(v0v)
    theta1 = v0v1.angle((- v1v))
    if ((theta0 + theta1) > math.pi):
        theta0 = v0v1.angle((- v0v))
        theta1 = v0v1.angle(v1v)
    u0u1 = (u1 - u0)
    u0u = (u - u0)
    u1u = (u - u1)
    phi0 = u0u1.angle(u0u)
    phi1 = u0u1.angle((- u1u))
    if ((phi0 + phi1) > math.pi):
        phi0 = u0u1.angle((- u0u))
        phi1 = u0u1.angle(u1u)
    dir0 = (u0u1.cross(u0u) > 0)
    dir1 = (u0u1.cross(u1u) > 0)
    return {'theta0': theta0, 'theta1': theta1, 'phi0': phi0, 'phi1': phi1, 'dir0': dir0, 'dir1': dir1}