Spaces:
Running
Running
update
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ def glb_add_lights(path_input, path_output):
|
|
125 |
def extrude_depth_3d(
|
126 |
path_rgb,
|
127 |
path_depth,
|
128 |
-
path_out_base=
|
129 |
alpha=1.0,
|
130 |
invert=0,
|
131 |
output_model_scale=100,
|
@@ -282,8 +282,10 @@ def extrude_depth_3d(
|
|
282 |
vertices = np.append(vertices, vertices_bottom_frame, axis=0)
|
283 |
colors = np.append(colors, [[0.5, 0.5, 0.5]] * (2 * w), axis=0)
|
284 |
for i in range(w - 1):
|
285 |
-
|
286 |
-
|
|
|
|
|
287 |
|
288 |
# FRONT frame
|
289 |
|
@@ -368,7 +370,6 @@ def extrude_depth_3d(
|
|
368 |
)
|
369 |
colors = np.append(colors, [[0.5, 0.5, 0.5]] * 4, axis=0)
|
370 |
|
371 |
-
|
372 |
trimesh_kwargs = {}
|
373 |
if vertex_colors:
|
374 |
trimesh_kwargs["vertex_colors"] = colors
|
|
|
125 |
def extrude_depth_3d(
|
126 |
path_rgb,
|
127 |
path_depth,
|
128 |
+
path_out_base=None,
|
129 |
alpha=1.0,
|
130 |
invert=0,
|
131 |
output_model_scale=100,
|
|
|
282 |
vertices = np.append(vertices, vertices_bottom_frame, axis=0)
|
283 |
colors = np.append(colors, [[0.5, 0.5, 0.5]] * (2 * w), axis=0)
|
284 |
for i in range(w - 1):
|
285 |
+
nvi_d = nv + i
|
286 |
+
nvi_f = nvi_d + w
|
287 |
+
faces.append([nvi_d, nvi_f, nvi_d + 1])
|
288 |
+
faces.append([nvi_d + 1, nvi_f, nvi_f + 1])
|
289 |
|
290 |
# FRONT frame
|
291 |
|
|
|
370 |
)
|
371 |
colors = np.append(colors, [[0.5, 0.5, 0.5]] * 4, axis=0)
|
372 |
|
|
|
373 |
trimesh_kwargs = {}
|
374 |
if vertex_colors:
|
375 |
trimesh_kwargs["vertex_colors"] = colors
|