Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Hunyuan3DWrapper > Trimesh to MESH

ComfyUI Node: Trimesh to MESH

Class Name

TrimeshToMESH

Category
Hunyuan3DWrapper
Author
kijai (Account age: 2948days)
Extension
ComfyUI-Hunyuan3DWrapper
Latest Updated
2026-07-29
Github Stars
1.03K

How to Install ComfyUI-Hunyuan3DWrapper

Install this extension via the ComfyUI Manager by searching for ComfyUI-Hunyuan3DWrapper
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Hunyuan3DWrapper 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

Trimesh to MESH Description

Converts `TRIMESH` to `MESH` in ComfyUI, transforming vertices and faces into torch tensors.

Trimesh to MESH:

The TrimeshToMESH node is designed to facilitate the conversion of a TRIMESH object into a MESH object within the ComfyUI framework. This conversion is crucial for users who need to work with mesh data in a format that is compatible with ComfyUI's processing capabilities. The node extracts the essential mesh data, specifically the vertices and faces, and transforms them into torch tensors, which are then encapsulated in a MESH object. This process ensures that the mesh data is efficiently handled and ready for further manipulation or rendering within the ComfyUI environment. By focusing solely on the mesh data, the node streamlines the workflow for AI artists, allowing them to seamlessly integrate 3D models into their projects without delving into complex data structures.

Trimesh to MESH Input Parameters:

trimesh

The trimesh parameter is the primary input for the TrimeshToMESH node. It represents the TRIMESH object that contains the 3D model data, including vertices and faces. This parameter is crucial as it provides the raw mesh data that will be converted into the ComfyUI-compatible MESH format. The trimesh object should be a valid TRIMESH instance, ensuring that it contains well-defined vertices and faces for successful conversion. There are no specific minimum, maximum, or default values for this parameter, as it depends on the user's input mesh data.

Trimesh to MESH Output Parameters:

MESH

The MESH output parameter is the result of the conversion process performed by the TrimeshToMESH node. It is a MESH object that encapsulates the vertices and faces of the original TRIMESH as torch tensors. This output is essential for users who need to work with mesh data in the ComfyUI environment, as it ensures compatibility and facilitates further processing or rendering tasks. The MESH object provides a streamlined and efficient representation of the 3D model, making it easier for AI artists to integrate and manipulate within their projects.

Trimesh to MESH Usage Tips:

  • Ensure that the trimesh input is a valid and well-formed TRIMESH object to avoid conversion errors and ensure accurate results.
  • Utilize the MESH output in subsequent nodes within ComfyUI to take advantage of its compatibility and streamlined data structure for further processing or rendering tasks.

Trimesh to MESH Common Errors and Solutions:

ImportError: No module named 'torch'

  • Explanation: This error occurs when the torch library is not installed in your Python environment, which is required for handling tensor operations.
  • Solution: Install the torch library using the command pip install torch to resolve this issue and enable the node to function correctly.

ValueError: Invalid TRIMESH object

  • Explanation: This error indicates that the input trimesh object is not a valid TRIMESH instance, possibly due to missing or malformed vertices and faces data.
  • Solution: Verify that the trimesh input is correctly formatted and contains all necessary mesh data. Ensure that the vertices and faces are properly defined before passing it to the node.

Trimesh to MESH Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Hunyuan3DWrapper
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.

Trimesh to MESH