removed some unicode

This commit is contained in:
Andrea Pozzetti
2026-02-12 22:59:40 +01:00
parent f95bedac4c
commit 552633fc76
3 changed files with 9 additions and 7 deletions
+1
View File
@@ -27,6 +27,7 @@ isolated = true # Run all nodes in isolated environment
"tqdm>=4.60.0",
"torch",
"requests>=2.25.0",
"msvc-runtime",
# Mesh processing
"libigl>=2.6.1",
+6 -6
View File
@@ -178,7 +178,7 @@ def _load_vtk_mesh(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]:
mesh.metadata['file_name'] = os.path.basename(file_path)
mesh.metadata['file_format'] = os.path.splitext(file_path)[1].lower()
print(f"[load_mesh_file] ✓ Successfully loaded VTK: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
print(f"[load_mesh_file] [OK] Successfully loaded VTK: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
return mesh, ""
except Exception as e:
@@ -224,7 +224,7 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]:
loaded.metadata['file_name'] = os.path.basename(file_path)
loaded.metadata['file_format'] = os.path.splitext(file_path)[1].lower()
loaded.metadata['is_pointcloud'] = True
print(f"[load_mesh_file] ✓ Successfully loaded pointcloud: {len(loaded.vertices)} points")
print(f"[load_mesh_file] [OK] Successfully loaded pointcloud: {len(loaded.vertices)} points")
return loaded, ""
# Handle case where trimesh.load returns a Scene instead of a mesh
@@ -246,7 +246,7 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]:
pointcloud.metadata['file_name'] = os.path.basename(file_path)
pointcloud.metadata['file_format'] = os.path.splitext(file_path)[1].lower()
pointcloud.metadata['is_pointcloud'] = True
print(f"[load_mesh_file] ✓ Successfully loaded as pointcloud: {len(pointcloud.vertices)} points")
print(f"[load_mesh_file] [OK] Successfully loaded as pointcloud: {len(pointcloud.vertices)} points")
return pointcloud, ""
print(f"[load_mesh_file] Initial mesh: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
@@ -298,7 +298,7 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]:
mesh.metadata['file_name'] = os.path.basename(file_path)
mesh.metadata['file_format'] = os.path.splitext(file_path)[1].lower()
print(f"[load_mesh_file] ✓ Successfully loaded: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
print(f"[load_mesh_file] Successfully loaded: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
return mesh, ""
except Exception as e:
@@ -344,10 +344,10 @@ def load_mesh_file(file_path: str) -> Tuple[Optional[trimesh.Trimesh], str]:
mesh.metadata['file_name'] = os.path.basename(file_path)
mesh.metadata['file_format'] = os.path.splitext(file_path)[1].lower()
print(f"[load_mesh_file] ✓ Successfully loaded via libigl: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
print(f"[load_mesh_file] Successfully loaded via libigl: {len(mesh.vertices)} vertices, {len(mesh.faces)} faces")
return mesh, ""
except Exception as e2:
print(f"[load_mesh_file] ✗ Both loaders failed!")
print(f"[load_mesh_file] Both loaders failed!")
return None, f"Error loading mesh: {str(e)}; Fallback error: {str(e2)}"
+2 -1
View File
@@ -1,4 +1,5 @@
# Installation dependencies (for install.py optimization)
comfy-env>=0.0.19
comfy-dynamic-widgets>=0.0.2
comfy-3d-viewers>=0.1.0
comfy-3d-viewers>=0.1.0
msvc-runtime