xrg commited on
Commit
4bdba25
1 Parent(s): 242ad7a

fix mirror

Browse files
core/instant_utils/mesh_util.py CHANGED
@@ -16,9 +16,11 @@ from PIL import Image
16
 
17
 
18
  def save_obj(pointnp_px3, facenp_fx3, colornp_px3, fpath):
19
-
20
- pointnp_px3 = pointnp_px3 @ np.array([[1, 0, 0], [0, 1, 0], [0, 0, -1]])
21
- #facenp_fx3 = facenp_fx3[:, [2, 1, 0]]
 
 
22
 
23
  mesh = trimesh.Trimesh(
24
  vertices=pointnp_px3,
 
16
 
17
 
18
  def save_obj(pointnp_px3, facenp_fx3, colornp_px3, fpath):
19
+ # for local
20
+ # pointnp_px3 = pointnp_px3 @ np.array([[1, 0, 0], [0, 1, 0], [0, 0, -1]])
21
+ # for online mirror
22
+ pointnp_px3 = pointnp_px3 @ np.array([[-1, 0, 0], [0, 1, 0], [0, 0, -1]])
23
+ facenp_fx3 = facenp_fx3[:, [2, 1, 0]]
24
 
25
  mesh = trimesh.Trimesh(
26
  vertices=pointnp_px3,
example/flower.png DELETED
Binary file (423 kB)
 
example/stone.png DELETED
Binary file (132 kB)
 
example/turtle.png DELETED
Binary file (189 kB)