YulianSa commited on
Commit
068de59
·
1 Parent(s): 65b1e2e
Files changed (1) hide show
  1. refine/mesh_refine.py +1 -0
refine/mesh_refine.py CHANGED
@@ -313,6 +313,7 @@ def geo_refine_2(vertices, faces, fixed_v=None):
313
  meshes = simple_clean_mesh(to_pyml_mesh(vertices, faces), apply_smooth=True, stepsmoothnum=2, apply_sub_divide=False, sub_divide_threshold=0.25)
314
  simp_vertices, simp_faces = meshes.verts_packed(), meshes.faces_packed()
315
  vertices, faces = simp_vertices.detach().cpu().numpy(), simp_faces.detach().cpu().numpy()
 
316
  if fixed_v is not None:
317
  vertices, faces = trimesh.remesh.subdivide(vertices, faces)
318
  return vertices, faces
 
313
  meshes = simple_clean_mesh(to_pyml_mesh(vertices, faces), apply_smooth=True, stepsmoothnum=2, apply_sub_divide=False, sub_divide_threshold=0.25)
314
  simp_vertices, simp_faces = meshes.verts_packed(), meshes.faces_packed()
315
  vertices, faces = simp_vertices.detach().cpu().numpy(), simp_faces.detach().cpu().numpy()
316
+ vertices, faces = trimesh.remesh.subdivide(vertices, faces)
317
  if fixed_v is not None:
318
  vertices, faces = trimesh.remesh.subdivide(vertices, faces)
319
  return vertices, faces