Beispiel #1
0
def calcRotTrans(mesh1,mesh2):

    #mesh1 -> mesh2 rot

    mn = gni.calculate_normal(mesh2.vertexes,mesh2.faces)
    trans = gni.point_to_polane_icp(mesh1.vertexes,mesh2.vertexes,mn)
    print trans
    return trans[0]
def calc_normalvec_distance(mesh1,mesh2):
    x = mesh2.vertexes
    y = mesh1.vertexes
    yf = mesh1.faces

    yn = gni.calculate_normal(y,yf)
    trans,ind,b = gni.point_to_polane_icp(x,y,yn)

    return b
Beispiel #3
0
def calc_normalvec_distance(mesh1, mesh2):
    x = mesh2.vertexes
    y = mesh1.vertexes
    yf = mesh1.faces

    yn = gni.calculate_normal(y, yf)
    trans, ind, b = gni.point_to_polane_icp(x, y, yn)

    return b