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()
Example #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()
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()
Example #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()
def loadSelVerts(path):
    startEditing()
    selVerts = maketargetlib.loadVertsIndex(path)
    selectVert(selVerts)
    endEditing()
Example #6
0
def loadSelVerts(path):
    startEditing()
    selVerts = maketargetlib.loadVertsIndex(path)
    selectVert(selVerts)
    endEditing()