Spaces:
Runtime error
Runtime error
Update lib/dataset/mesh_util.py
Browse files- 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(
|
| 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 |
)
|