Update comfyui_mesh_simplifier.py

This commit is contained in:
Roundy
2025-03-09 23:39:24 +00:00
committed by GitHub
parent 37354bf29f
commit e5076705ee
+14 -1
View File
@@ -1,3 +1,16 @@
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
ComfyUI Mesh Simplifier Node
This node uses PyMeshLab for mesh simplification with texture preservation.
@@ -400,4 +413,4 @@ month=jan, year=2021, publisher={Zenodo}, doi={10.5281/zenodo.4438750}}
print(f"Reduced from {current_faces:,} to {new_faces:,} faces ({reduction_percent:.1f}% reduction)")
# Save the mesh
ms.save_current_mesh(output_path)
ms.save_current_mesh(output_path)