ComfyUI > Nodes > ComfyUI-Hunyuan3d-2-1 > Hunyuan 3D 2.1 Simple Meshlib Decimation

ComfyUI Node: Hunyuan 3D 2.1 Simple Meshlib Decimation

Class Name

Hy3D21SimpleMeshlibDecimate

Category
Hunyuan3D21Wrapper
Author
visualbruno (Account age: 5579days)
Extension
ComfyUI-Hunyuan3d-2-1
Latest Updated
2025-08-11
Github Stars
0.23K

How to Install ComfyUI-Hunyuan3d-2-1

Install this extension via the ComfyUI Manager by searching for ComfyUI-Hunyuan3d-2-1
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Hunyuan3d-2-1 in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Hunyuan 3D 2.1 Simple Meshlib Decimation Description

Simplify 3D meshes by reducing faces using meshlib for optimized models in real-time rendering and gaming.

Hunyuan 3D 2.1 Simple Meshlib Decimation:

The Hy3D21SimpleMeshlibDecimate node is designed to simplify 3D meshes by reducing the number of faces, which is a crucial step in optimizing 3D models for various applications such as real-time rendering, gaming, and virtual reality. This node leverages the meshlib library to perform decimation, ensuring that the resulting mesh maintains its essential shape and features while significantly reducing its complexity. By allowing you to specify either a target number of faces or a target face ratio, this node provides flexibility in achieving the desired level of detail. The primary goal of this node is to streamline the mesh processing workflow, making it easier to handle high-poly models and convert them into low-poly versions without compromising on quality.

Hunyuan 3D 2.1 Simple Meshlib Decimation Input Parameters:

trimesh

The trimesh parameter represents the input 3D mesh that you want to decimate. It is expected to be in a format compatible with the trimesh library, which typically includes vertices and faces that define the mesh's geometry. This parameter is crucial as it serves as the starting point for the decimation process.

subdivideParts

The subdivideParts parameter is a boolean that determines whether the mesh should be subdivided into parts during the decimation process. This can be useful for maintaining the integrity of different sections of the mesh, especially when dealing with complex models. The default value is False, meaning no subdivision will occur unless specified.

target_face_num

The target_face_num parameter specifies the exact number of faces you want the decimated mesh to have. This allows for precise control over the level of detail in the resulting mesh. If set to 0, this parameter is ignored, and the target_face_ratio is used instead. The default value is 0.

target_face_ratio

The target_face_ratio parameter defines the desired ratio of the original number of faces to retain in the decimated mesh. It is a float value between 0.0 and 1.0, where 1.0 means no reduction and 0.0 means complete removal of faces. This parameter provides a more flexible approach to decimation compared to specifying an exact number of faces. The default value is 0.0.

Hunyuan 3D 2.1 Simple Meshlib Decimation Output Parameters:

new_mesh

The new_mesh output parameter is the resulting decimated mesh. It contains the vertices and faces of the simplified model, which has been processed to reduce complexity while preserving essential features. This output is crucial for applications that require optimized 3D models, as it provides a balance between performance and visual fidelity.

Hunyuan 3D 2.1 Simple Meshlib Decimation Usage Tips:

  • To achieve a specific level of detail, use the target_face_num parameter to set an exact number of faces for the decimated mesh. This is particularly useful when you have constraints on the model's complexity.
  • If you are unsure about the exact number of faces needed, use the target_face_ratio to maintain a proportional reduction based on the original mesh's complexity. This approach is more flexible and can be adjusted easily.

Hunyuan 3D 2.1 Simple Meshlib Decimation Common Errors and Solutions:

ImportError: meshlib not found. Please install it using 'pip install meshlib'

  • Explanation: This error occurs when the meshlib library is not installed in your Python environment, which is required for the decimation process.
  • Solution: Install the meshlib library by running the command pip install meshlib in your terminal or command prompt.

ValueError: target_face_num or target_face_ratio must be set

  • Explanation: This error is raised when both target_face_num and target_face_ratio are set to their default values, which means no decimation target is specified.
  • Solution: Ensure that either target_face_num or target_face_ratio is set to a non-zero value to define the decimation target.

Hunyuan 3D 2.1 Simple Meshlib Decimation Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Hunyuan3d-2-1
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.