Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -318,7 +318,8 @@ def get_mesh(image, depth, blur_data, loadall):
|
|
318 |
#pcd.paint_uniform_color((1.0, 1.0, 1.0))
|
319 |
#mesh.append(pcd)
|
320 |
#print(mesh[len(mesh)-1])
|
321 |
-
|
|
|
322 |
print('mesh - ok')
|
323 |
|
324 |
# Save as glb
|
@@ -607,13 +608,6 @@ async(c, o, b, p, d, n, m)=>{
|
|
607 |
if (!o_.indexOf(n)) {
|
608 |
o_.push(n);
|
609 |
}
|
610 |
-
var j=0;
|
611 |
-
while (j<o_.length) {
|
612 |
-
if (o_.indexOf(o_[j]) != o_.lastIndexOf(o_[j])) {
|
613 |
-
o_.splice(o_.lastIndexOf(o_[j]), 1);
|
614 |
-
}
|
615 |
-
j++;
|
616 |
-
}
|
617 |
var dome = [];
|
618 |
for (var j=0; j<o_.length; j++) {
|
619 |
o_[j] = parseInt(o_[j]);
|
|
|
318 |
#pcd.paint_uniform_color((1.0, 1.0, 1.0))
|
319 |
#mesh.append(pcd)
|
320 |
#print(mesh[len(mesh)-1])
|
321 |
+
if not str(fnum) in mesh_n:
|
322 |
+
mesh_n.append(str(fnum))
|
323 |
print('mesh - ok')
|
324 |
|
325 |
# Save as glb
|
|
|
608 |
if (!o_.indexOf(n)) {
|
609 |
o_.push(n);
|
610 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
var dome = [];
|
612 |
for (var j=0; j<o_.length; j++) {
|
613 |
o_[j] = parseInt(o_[j]);
|