Spaces:
Running
on
Zero
Running
on
Zero
Carlos Vargas R
commited on
Commit
·
4df4c02
1
Parent(s):
2f5e41d
Cambios efecto espejo en OBJ
Browse files- src/utils/mesh_util.py +4 -0
src/utils/mesh_util.py
CHANGED
@@ -25,6 +25,10 @@ def save_obj(pointnp_px3, facenp_fx3, colornp_px3, fpath):
|
|
25 |
faces=facenp_fx3,
|
26 |
vertex_colors=colornp_px3,
|
27 |
)
|
|
|
|
|
|
|
|
|
28 |
mesh.export(fpath, 'obj')
|
29 |
|
30 |
|
|
|
25 |
faces=facenp_fx3,
|
26 |
vertex_colors=colornp_px3,
|
27 |
)
|
28 |
+
|
29 |
+
# Corregir la orientación de las caras
|
30 |
+
mesh.fix_normals()
|
31 |
+
|
32 |
mesh.export(fpath, 'obj')
|
33 |
|
34 |
|