ComfyUI > Nodes > DJZ-Nodes > Parametric Mesh Generator V2

ComfyUI Node: Parametric Mesh Generator V2

Class Name

ParametricMeshGenV2

Category
DJZ-Nodes
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

Parametric Mesh Generator V2 Description

Generate customizable 3D meshes with enhanced control over parameters for AI artists.

Parametric Mesh Generator V2:

The ParametricMeshGenV2 node is a powerful tool designed to generate parametric 3D meshes with enhanced control over various parameters, making it an ideal choice for AI artists looking to create complex and visually appealing 3D models. This node allows you to select from a variety of surface types, such as spheres, toruses, Klein bottles, and Möbius strips, and customize their appearance and structure through a range of adjustable parameters. By offering control over aspects like resolution, scale, wave properties, and surface smoothness, the node provides a flexible platform for creating intricate and unique 3D shapes. Additionally, it includes options for preview settings and mesh color, enabling you to visualize and refine your designs before finalizing them. The primary goal of this node is to facilitate the creation of detailed and customizable 3D meshes that can be used in various artistic and design applications.

Parametric Mesh Generator V2 Input Parameters:

surface_type

The surface_type parameter allows you to choose the type of 3D surface you want to generate. Options include "SPHERE", "TORUS", "KLEIN_BOTTLE", and "MOBIUS", with the default being "SPHERE". This choice determines the basic shape and topology of the mesh, influencing how other parameters will affect the final output.

resolution

The resolution parameter controls the number of subdivisions in the mesh, affecting its detail and smoothness. It is an integer value with a default of 30, a minimum of 10, and a maximum of 200. Higher resolutions result in more detailed meshes but may increase computational load.

scale

The scale parameter adjusts the overall size of the mesh. It is a float value with a default of 1.0, a minimum of 0.1, and a maximum of 10.0. Scaling allows you to fit the mesh to your desired dimensions without altering its proportions.

amplitude

The amplitude parameter defines the height of the primary wave deformation applied to the mesh. It is a float value with a default of 0.5, a minimum of 0.0, and a maximum of 2.0. This parameter affects the prominence of wave patterns on the surface.

frequency

The frequency parameter sets the number of wave cycles in the primary deformation. It is a float value with a default of 1.0, a minimum of 0.1, and a maximum of 5.0. Higher frequencies result in more wave cycles across the mesh surface.

phase

The phase parameter shifts the starting point of the primary wave deformation. It is a float value with a default of 0.0, ranging from -3.14159 to 3.14159. Adjusting the phase can create different wave alignments on the mesh.

secondary_amplitude

The secondary_amplitude parameter controls the height of a secondary wave deformation for more complex surface patterns. It is a float value with a default of 0.0, a minimum of 0.0, and a maximum of 2.0. This parameter adds additional texture to the mesh.

secondary_frequency

The secondary_frequency parameter sets the number of cycles for the secondary wave deformation. It is a float value with a default of 2.0, a minimum of 0.1, and a maximum of 5.0. It allows for finer control over the secondary wave pattern.

secondary_phase

The secondary_phase parameter shifts the starting point of the secondary wave deformation. It is a float value with a default of 0.0, ranging from -3.14159 to 3.14159. This parameter helps in achieving unique wave interactions on the mesh.

smoothness

The smoothness parameter determines the level of smoothing applied to the mesh surface. It is an integer value with a default of 1, a minimum of 0, and a maximum of 3. Higher values result in smoother surfaces with less visible edges.

twist

The twist parameter introduces a rotational deformation to the mesh, creating a twisted appearance. It is a float value with a default of 0.0, ranging from -2.0 to 2.0. This parameter can add dynamic and interesting effects to the mesh.

preview_elevation

The preview_elevation parameter sets the elevation angle for the mesh preview, helping you visualize the model from different vertical perspectives. It is an integer value with a default of 30, a minimum of 0, and a maximum of 90.

preview_azimuth

The preview_azimuth parameter adjusts the azimuth angle for the mesh preview, allowing you to view the model from various horizontal angles. It is an integer value with a default of 45, a minimum of 0, and a maximum of 360.

mesh_color

The mesh_color parameter lets you choose the color of the mesh for preview purposes. Options include "CYAN", "RED", "GREEN", "BLUE", "PURPLE", and "ORANGE", with the default being "CYAN". This helps in distinguishing different parts of the mesh visually.

edge_visibility

The edge_visibility parameter controls the visibility of the mesh edges in the preview. It is a float value with a default of 0.3, a minimum of 0.0, and a maximum of 1.0. Higher values make the edges more prominent, aiding in mesh analysis.

Parametric Mesh Generator V2 Output Parameters:

vertices

The vertices output parameter provides the 3D coordinates of all the points that make up the mesh. This data is crucial for rendering the mesh in 3D space and is used in conjunction with the faces to define the mesh structure.

faces

The faces output parameter contains the indices of the vertices that form each polygonal face of the mesh. This information is essential for constructing the mesh's surface and is used to render the mesh in 3D applications.

Parametric Mesh Generator V2 Usage Tips:

  • Experiment with different surface_type options to explore a variety of shapes and structures, each offering unique artistic possibilities.
  • Adjust the resolution parameter to balance between mesh detail and computational efficiency, especially when working with complex designs.
  • Use the amplitude and frequency parameters to create dynamic wave patterns on the mesh surface, adding texture and depth to your models.
  • Combine primary and secondary wave parameters to achieve intricate and layered surface deformations for more complex designs.

Parametric Mesh Generator V2 Common Errors and Solutions:

"Invalid surface type selected"

  • Explanation: This error occurs when a non-supported surface type is chosen.
  • Solution: Ensure that the surface_type parameter is set to one of the supported options: "SPHERE", "TORUS", "KLEIN_BOTTLE", or "MOBIUS".

"Resolution out of bounds"

  • Explanation: The resolution value is set outside the allowed range.
  • Solution: Adjust the resolution parameter to be within the specified range of 10 to 200.

"Scale value is too low or too high"

  • Explanation: The scale parameter is set outside the permissible range.
  • Solution: Ensure the scale parameter is between 0.1 and 10.0 to maintain a valid mesh size.

"Wave parameters cause mesh distortion"

  • Explanation: Extreme values in wave parameters may lead to undesirable mesh distortions.
  • Solution: Fine-tune the amplitude, frequency, and phase parameters to achieve a balanced and visually appealing mesh.

Parametric Mesh Generator V2 Related Nodes

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