Esempio n. 1
0
def iaendpoints(OPTION="LOOP"):
    from iase2hmt import iase2hmt
    from iabinary import iabinary

    Iab = None
    OPTION = upper(OPTION)
    if OPTION == "LOOP":
        Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]]))
    elif OPTION == "HOMOTOPIC":
        Iab = iase2hmt(iabinary([[0, 1, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]]))

    return Iab
Esempio n. 2
0
def iaendpoints(OPTION="LOOP"):
    from iase2hmt import iase2hmt
    from iabinary import iabinary

    Iab = None
    OPTION = OPTION.upper()
    if OPTION == 'LOOP':
        Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [0, 0, 0]]),
                       iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]]))
    elif OPTION == 'HOMOTOPIC':
        Iab = iase2hmt(iabinary([[0, 1, 0], [0, 1, 0], [0, 0, 0]]),
                       iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]]))

    return Iab
Esempio n. 3
0
def iahomothin():
    from iase2hmt import iase2hmt
    from iabinary import iabinary

    Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [1, 1, 1]]), iabinary([[1, 1, 1], [0, 0, 0], [0, 0, 0]]))

    return Iab
Esempio n. 4
0
def iahomothick():
    from iase2hmt import iase2hmt
    from iabinary import iabinary

    Iab = iase2hmt(iabinary([[1, 1, 1], [0, 0, 0], [0, 0, 0]]),
                   iabinary([[0, 0, 0], [0, 1, 0], [1, 1, 1]]))

    return Iab
Esempio n. 5
0
def iainterot(Iab, theta=45, DIRECTION="CLOCKWISE"):
    from iase2hmt import iase2hmt
    from iaserot import iaserot

    DIRECTION = DIRECTION.upper()
    A, Bc = Iab
    if DIRECTION != 'CLOCKWISE':
        theta = 360 - theta
    Irot = iase2hmt(iaserot(A, theta), iaserot(Bc, theta))

    return Irot
Esempio n. 6
0
def iainterot(Iab, theta=45, DIRECTION="CLOCKWISE"):
    from iase2hmt import iase2hmt
    from iaserot import iaserot


    DIRECTION = upper(DIRECTION)
    A,Bc = Iab
    if DIRECTION != 'CLOCKWISE':
        theta = 360 - theta
    Irot = iase2hmt( iaserot(A, theta),
                    iaserot(Bc,theta))


    return Irot