Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def modify_texture():
|
|
14 |
material = trimesh.visual.texture.SimpleMaterial(image=im)
|
15 |
|
16 |
# Get the uv coordinates from the mesh
|
17 |
-
uv =
|
18 |
|
19 |
# Create TextureVisuals with the uv coordinates and the texture image
|
20 |
color_visuals = trimesh.visual.TextureVisuals(uv=uv, image=im, material=material)
|
|
|
14 |
material = trimesh.visual.texture.SimpleMaterial(image=im)
|
15 |
|
16 |
# Get the uv coordinates from the mesh
|
17 |
+
uv = scene.visual.uv
|
18 |
|
19 |
# Create TextureVisuals with the uv coordinates and the texture image
|
20 |
color_visuals = trimesh.visual.TextureVisuals(uv=uv, image=im, material=material)
|