ComfyUI > Nodes > ComfyUI > VoxelToMesh

ComfyUI Node: VoxelToMesh

Class Name

VoxelToMesh

Category
3d
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

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

VoxelToMesh Description

Convert voxel data to mesh for 3D modeling with flexible algorithms, aiding artists and designers.

VoxelToMesh:

The VoxelToMesh node is a powerful tool designed to convert voxel data into a mesh representation, which is essential for 3D modeling and visualization. This node is particularly beneficial for artists and designers who work with 3D data, as it allows for the transformation of volumetric data into a more tangible and manipulable form. By utilizing different algorithms, such as "surface net" and "basic," the node provides flexibility in how the mesh is generated, catering to various artistic and technical needs. The primary goal of this node is to facilitate the creation of detailed and accurate 3D models from voxel data, making it an invaluable asset in the realm of 3D design and digital art.

VoxelToMesh Input Parameters:

voxel

The voxel parameter represents the input voxel data that you wish to convert into a mesh. This data is typically a 3D grid of values that define the structure or volume you are working with. The voxel data serves as the foundation for the mesh generation process, and its quality and resolution can significantly impact the final mesh output.

algorithm

The algorithm parameter allows you to choose between different methods for converting voxel data into a mesh. The available options are "surface net" and "basic." The "surface net" algorithm is generally more sophisticated and can produce smoother and more detailed meshes, while the "basic" algorithm is simpler and may be faster but less detailed. Selecting the appropriate algorithm depends on your specific needs and the complexity of the voxel data.

threshold

The threshold parameter is a floating-point value that determines the cutoff point for distinguishing between solid and empty spaces within the voxel data. It plays a crucial role in defining the surface of the mesh. The default value is 0.6, with a minimum of -1.0 and a maximum of 1.0, and it can be adjusted in increments of 0.01. A higher threshold may result in a more solid mesh, while a lower threshold can create a more porous structure.

VoxelToMesh Output Parameters:

MESH

The MESH output is the resulting 3D mesh generated from the input voxel data. This mesh consists of vertices and faces that define the surface of the 3D model. The mesh is a crucial component for rendering and further manipulation in 3D applications, allowing you to visualize and interact with the structure derived from the voxel data. The quality and detail of the mesh depend on the input parameters and the chosen algorithm.

VoxelToMesh Usage Tips:

  • Experiment with different threshold values to achieve the desired level of detail and solidity in your mesh. A lower threshold can reveal more intricate details, while a higher threshold can simplify the structure.
  • Choose the algorithm based on your performance needs and the complexity of the voxel data. The "surface net" algorithm is ideal for high-detail models, while the "basic" algorithm is suitable for quicker, less detailed conversions.

VoxelToMesh Common Errors and Solutions:

"Invalid voxel data"

  • Explanation: This error occurs when the input voxel data is not in the expected format or is corrupted.
  • Solution: Ensure that the voxel data is correctly formatted and compatible with the node. Check for any data corruption or inconsistencies.

"Threshold value out of range"

  • Explanation: The threshold value provided is outside the acceptable range of -1.0 to 1.0.
  • Solution: Adjust the threshold value to be within the specified range, ensuring it is between -1.0 and 1.0.

"Algorithm not recognized"

  • Explanation: The specified algorithm is not one of the recognized options ("surface net" or "basic").
  • Solution: Verify that the algorithm parameter is set to either "surface net" or "basic" and correct any typographical errors.

VoxelToMesh Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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 Playground, enabling artists to harness the latest AI tools to create incredible art.