Remove the print message from the mesh splitter, these cause problems with the console-less version.
This commit is contained in:
parent
0b3a0b7151
commit
e7d961fadf
1 changed files with 5 additions and 5 deletions
|
@ -82,7 +82,7 @@ class mesh(object):
|
||||||
def splitToParts(self, callback = None):
|
def splitToParts(self, callback = None):
|
||||||
t0 = time.time()
|
t0 = time.time()
|
||||||
|
|
||||||
print "%f: " % (time.time() - t0), "Splitting a model with %d vertexes." % (len(self.vertexes))
|
#print "%f: " % (time.time() - t0), "Splitting a model with %d vertexes." % (len(self.vertexes))
|
||||||
removeDict = {}
|
removeDict = {}
|
||||||
tree = util3d.AABBTree()
|
tree = util3d.AABBTree()
|
||||||
off = numpy.array([0.0001,0.0001,0.0001])
|
off = numpy.array([0.0001,0.0001,0.0001])
|
||||||
|
@ -97,7 +97,7 @@ class mesh(object):
|
||||||
removeDict[idx] = q[0].idx
|
removeDict[idx] = q[0].idx
|
||||||
if callback != None and (idx % 100) == 0:
|
if callback != None and (idx % 100) == 0:
|
||||||
callback(idx)
|
callback(idx)
|
||||||
print "%f: " % (time.time() - t0), "Marked %d duplicate vertexes for removal." % (len(removeDict))
|
#print "%f: " % (time.time() - t0), "Marked %d duplicate vertexes for removal." % (len(removeDict))
|
||||||
|
|
||||||
faceList = []
|
faceList = []
|
||||||
for idx in xrange(0, self.vertexCount, 3):
|
for idx in xrange(0, self.vertexCount, 3):
|
||||||
|
@ -110,7 +110,7 @@ class mesh(object):
|
||||||
f[2] = removeDict[f[2]]
|
f[2] = removeDict[f[2]]
|
||||||
faceList.append(f)
|
faceList.append(f)
|
||||||
|
|
||||||
print "%f: " % (time.time() - t0), "Building face lists after vertex removal."
|
#print "%f: " % (time.time() - t0), "Building face lists after vertex removal."
|
||||||
vertexFaceList = []
|
vertexFaceList = []
|
||||||
for idx in xrange(0, self.vertexCount):
|
for idx in xrange(0, self.vertexCount):
|
||||||
vertexFaceList.append([])
|
vertexFaceList.append([])
|
||||||
|
@ -120,7 +120,7 @@ class mesh(object):
|
||||||
vertexFaceList[f[1]].append(idx)
|
vertexFaceList[f[1]].append(idx)
|
||||||
vertexFaceList[f[2]].append(idx)
|
vertexFaceList[f[2]].append(idx)
|
||||||
|
|
||||||
print "%f: " % (time.time() - t0), "Building parts."
|
#print "%f: " % (time.time() - t0), "Building parts."
|
||||||
self._vertexFaceList = vertexFaceList
|
self._vertexFaceList = vertexFaceList
|
||||||
self._faceList = faceList
|
self._faceList = faceList
|
||||||
partList = []
|
partList = []
|
||||||
|
@ -128,7 +128,7 @@ class mesh(object):
|
||||||
for idx in xrange(0, len(faceList)):
|
for idx in xrange(0, len(faceList)):
|
||||||
if not idx in doneSet:
|
if not idx in doneSet:
|
||||||
partList.append(self._createPartFromFacewalk(idx, doneSet))
|
partList.append(self._createPartFromFacewalk(idx, doneSet))
|
||||||
print "%f: " % (time.time() - t0), "Split into %d parts" % (len(partList))
|
#print "%f: " % (time.time() - t0), "Split into %d parts" % (len(partList))
|
||||||
self._vertexFaceList = None
|
self._vertexFaceList = None
|
||||||
self._faceList = None
|
self._faceList = None
|
||||||
return partList
|
return partList
|
||||||
|
|
Loading…
Reference in a new issue