Skip to content

Commit 41e879c

Browse files
merge vertices for marching cubes
1 parent 5c20b67 commit 41e879c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nerfstudio/utils/marching_cubes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def evaluate(points):
156156
else:
157157
filename = str(output_path)
158158
filename_simplify = str(output_path).replace(".ply", "-simplify.ply")
159-
159+
combined.merge_vertices(digits_vertex=6)
160160
combined.export(filename)
161161
if simplify_mesh:
162162
ms = pymeshlab.MeshSet()
@@ -318,6 +318,7 @@ def evaluate(points):
318318
meshes.append(meshcrop)
319319

320320
combined = trimesh.util.concatenate(meshes)
321+
combined.merge_vertices(digits_vertex=6)
321322

322323
# inverse contraction and clipping the points range
323324
if inv_contraction is not None:

0 commit comments

Comments
 (0)