ComfyUI > Nodes > DJZ-Nodes > Parametric Mesh Generator

ComfyUI Node: Parametric Mesh Generator

Class Name

ParametricMeshGen

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 Description

Generate customizable 3D meshes with enhanced controls for intricate designs and deformations.

Parametric Mesh Generator:

The ParametricMeshGen node is a powerful tool designed to generate parametric 3D meshes with enhanced controls, making it an essential asset for AI artists looking to create complex and customizable 3D shapes. This node allows you to create a variety of surfaces such as spheres, toruses, Klein bottles, and Möbius strips, each with unique geometric properties. By providing a range of parameters, it enables you to manipulate the mesh's resolution, scale, and surface characteristics, allowing for intricate designs and deformations. The node's ability to incorporate primary and secondary wave functions for surface modulation, along with options for smoothness and twist, offers a high degree of creative freedom. Additionally, it supports preview settings to help visualize the mesh before finalizing the design, making it a versatile tool for both beginners and experienced users in the field of 3D modeling.

Parametric Mesh Generator Input Parameters:

surface_type

This parameter determines the type of surface to be generated. Options include "SPHERE", "TORUS", "KLEIN_BOTTLE", and "MOBIUS", with the default being "SPHERE". Each type offers a distinct geometric structure, allowing for diverse creative possibilities.

resolution

Defines the mesh's resolution, affecting the detail level of the generated surface. 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

Controls the overall size of the mesh. It is a float value with a default of 1.0, ranging from 0.1 to 10.0. Adjusting the scale allows you to fit the mesh to your desired dimensions.

amplitude

Sets the amplitude of the primary wave function used for surface modulation. It is a float value with a default of 0.5, ranging from 0.0 to 2.0. Higher amplitudes create more pronounced surface undulations.

frequency

Determines the frequency of the primary wave function. It is a float value with a default of 1.0, ranging from 0.1 to 5.0. This parameter affects the number of wave cycles across the surface.

phase

Specifies the phase shift of the primary wave function. It is a float value with a default of 0.0, ranging from -3.14159 to 3.14159. Phase adjustments can shift the wave pattern along the surface.

secondary_amplitude

Controls the amplitude of a secondary wave function for more complex surface deformations. It is a float value with a default of 0.0, ranging from 0.0 to 2.0. This allows for additional surface detail.

secondary_frequency

Sets the frequency of the secondary wave function. It is a float value with a default of 2.0, ranging from 0.1 to 5.0. This parameter adds further complexity to the surface pattern.

secondary_phase

Specifies the phase shift of the secondary wave function. It is a float value with a default of 0.0, ranging from -3.14159 to 3.14159. It provides additional control over the secondary wave's position.

smoothness

Determines the smoothness of the mesh surface. It is an integer value with a default of 1, ranging from 0 to 3. Higher values result in smoother surfaces, reducing visible edges.

twist

Applies a twist to the mesh, altering its geometric structure. It is a float value with a default of 0.0, ranging from -2.0 to 2.0. Twisting can create interesting and dynamic shapes.

preview_elevation

Sets the elevation angle for the mesh preview. It is an integer value with a default of 30, ranging from 0 to 90. This helps in visualizing the mesh from different vertical angles.

preview_azimuth

Determines the azimuth angle for the mesh preview. It is an integer value with a default of 45, ranging from 0 to 360. This allows for a full 360-degree view of the mesh.

mesh_color

Specifies the color of the mesh in the preview. Options include "CYAN", "RED", "GREEN", "BLUE", "PURPLE", and "ORANGE", with the default being "CYAN". This helps in distinguishing the mesh visually.

edge_visibility

Controls the visibility of the mesh edges in the preview. It is a float value with a default of 0.3, ranging from 0.0 to 1.0. Higher values make the edges more prominent.

Parametric Mesh Generator Output Parameters:

vertices

This output provides the vertices of the generated mesh, which are the points in 3D space that define the shape of the mesh. These vertices are crucial for rendering the mesh and can be used in further processing or visualization tasks.

faces

The faces output consists of the mesh's faces, which are the flat surfaces that connect the vertices. These faces are essential for creating the visible surface of the mesh and are used in rendering and exporting the mesh to formats like OBJ.

Parametric Mesh Generator Usage Tips:

  • Experiment with different surface_type options to explore a variety of geometric shapes and find the one that best suits your creative vision.
  • Adjust the resolution parameter to balance between mesh detail and computational efficiency, especially when working with complex surfaces.
  • Utilize the amplitude, frequency, and phase parameters to create unique surface patterns and textures, adding depth and interest to your designs.
  • Use the preview_elevation and preview_azimuth settings to get a comprehensive view of your mesh before finalizing, ensuring it meets your expectations.

Parametric Mesh Generator Common Errors and Solutions:

"Invalid surface type"

  • Explanation: The specified surface_type is not recognized by the node.
  • Solution: Ensure that the surface_type is one of the valid options: "SPHERE", "TORUS", "KLEIN_BOTTLE", or "MOBIUS".

"Resolution out of range"

  • Explanation: The resolution value is outside the allowed range.
  • Solution: Set the resolution to a value between 10 and 200.

"Scale value out of range"

  • Explanation: The scale parameter is set to a value outside its permissible range.
  • Solution: Adjust the scale to be within 0.1 and 10.0.

"Amplitude value out of range"

  • Explanation: The amplitude or secondary_amplitude is set beyond the allowed limits.
  • Solution: Ensure the amplitude values are between 0.0 and 2.0.

"Frequency value out of range"

  • Explanation: The frequency or secondary_frequency is not within the valid range.
  • Solution: Set the frequency values between 0.1 and 5.0.

Parametric Mesh Generator 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.