Exemplo n.º 1
0
def loadSelVertsBase(path):
    print "Loading verts to select"
    mainDir = os.path.dirname(path)
    path = os.path.join(mainDir, "verts_to_fit.verts")#TODO: no hardcoded!
    startEditing()
    selVerts = maketargetlib.loadVertsIndex(path)
    selectVert(selVerts, name = "Base")
    endEditing()
Exemplo n.º 2
0
def loadSelVertsBase(path):
    print "Loading verts to select"
    mainDir = os.path.dirname(path)
    path = os.path.join(mainDir, "verts_to_fit.verts")  #TODO: no hardcoded!
    startEditing()
    selVerts = maketargetlib.loadVertsIndex(path)
    selectVert(selVerts, name="Base")
    endEditing()
Exemplo n.º 3
0
def adapt(path):
    global fitVert2
    mainDir = os.path.dirname(path)
    path = os.path.join(mainDir,fitVert2.val)
    startEditing()
    base = getVertices(name="Base")
    verticesToAdapt = maketargetlib.loadVertsIndex(path)
    #print verticesToAdapt
    scan = getVertices(name="scan_mesh")
    maketargetlib.adaptMesh(base, scan, verticesToAdapt)
    updateVertices(base,name="Base")
    endEditing()
Exemplo n.º 4
0
def adapt(path):
    global fitVert2
    mainDir = os.path.dirname(path)
    path = os.path.join(mainDir, fitVert2.val)
    startEditing()
    base = getVertices(name="Base")
    verticesToAdapt = maketargetlib.loadVertsIndex(path)
    #print verticesToAdapt
    scan = getVertices(name="scan_mesh")
    maketargetlib.adaptMesh(base, scan, verticesToAdapt)
    updateVertices(base, name="Base")
    endEditing()
Exemplo n.º 5
0
def loadSelVerts(path):
    startEditing()
    selVerts = maketargetlib.loadVertsIndex(path)
    selectVert(selVerts)
    endEditing()
Exemplo n.º 6
0
def loadSelVerts(path):
    startEditing()
    selVerts = maketargetlib.loadVertsIndex(path)
    selectVert(selVerts)
    endEditing()