From 9f59f92943032732e9fbeac37d847a2cfb5c85cd Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Wed, 22 Jan 2025 20:09:36 +0200 Subject: [PATCH] uncap face limit --- hy3dgen/texgen/utils/uv_warp_utils.py | 4 ++-- nodes.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hy3dgen/texgen/utils/uv_warp_utils.py b/hy3dgen/texgen/utils/uv_warp_utils.py index b14bc7e..b715123 100755 --- a/hy3dgen/texgen/utils/uv_warp_utils.py +++ b/hy3dgen/texgen/utils/uv_warp_utils.py @@ -31,8 +31,8 @@ def mesh_uv_wrap(mesh): mesh = mesh.dump(concatenate=True) if len(mesh.faces) > 50000: - raise ValueError("The mesh has more than 50,000 faces, which is not supported.") - + #raise ValueError("The mesh has more than 50,000 faces, which is not supported.") + print("UV wrap: The mesh has more than 50,000 faces, which is not recommended.") vmapping, indices, uvs = xatlas.parametrize(mesh.vertices, mesh.faces) mesh.vertices = mesh.vertices[vmapping] diff --git a/nodes.py b/nodes.py index 045177e..4d9e307 100644 --- a/nodes.py +++ b/nodes.py @@ -475,7 +475,7 @@ class Hy3DPostprocessMesh: "remove_floaters": ("BOOLEAN", {"default": True}), "remove_degenerate_faces": ("BOOLEAN", {"default": True}), "reduce_faces": ("BOOLEAN", {"default": True}), - "max_facenum": ("INT", {"default": 40000, "min": 1}), + "max_facenum": ("INT", {"default": 40000, "min": 1, "max": 10000000, "step": 1}), }, }