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 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()
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()