Yuliang commited on
Commit
45be334
1 Parent(s): 35fb6aa

Update lib/dataset/mesh_util.py

Browse files
Files changed (1) hide show
  1. lib/dataset/mesh_util.py +1 -1
lib/dataset/mesh_util.py CHANGED
@@ -139,7 +139,7 @@ def mesh_edge_loss(meshes, target_length: float = 0.0):
139
 
140
  def remesh(obj_path, perc, device):
141
  mesh = trimesh.load(obj_path)
142
- mesh = mesh.simplify_quadratic_decimation(face_count)
143
  mesh = trimesh.smoothing.filter_humphrey(
144
  mesh, alpha=0.1, beta=0.5, iterations=10, laplacian_operator=None
145
  )
 
139
 
140
  def remesh(obj_path, perc, device):
141
  mesh = trimesh.load(obj_path)
142
+ mesh = mesh.simplify_quadratic_decimation(50000)
143
  mesh = trimesh.smoothing.filter_humphrey(
144
  mesh, alpha=0.1, beta=0.5, iterations=10, laplacian_operator=None
145
  )