3dSynth

Docs / G-code Sculptor

Open in the interactive docs reader

Polygonizer

Polygonizer replaces the smooth circular cross-section with a regular polygon, optionally different at the bottom and top, and blends toward round with rounding. You can produce prisms, chamfered towers, and hybrid forms that morph from square to hexagon up the height. Depth controls how strongly the facets cut inward relative to the reference cylinder.

Preview

Polygonizer preview

Effect Controls

Interactive preview is available in the interactive reader.

Parameters

N-Gon Bottom
Number of sides on the base profile (3–12). Three yields a triangular prism, six a hexagon, and so on.
N-Gon Top
Number of sides at the top cross-section (3–12). Match the bottom for a uniform prism; diverge to twist the facet count along height.
Depth (mm)
How far facet geometry deviates from the reference circle in millimeters (0–20). Higher depth makes flat faces more pronounced; zero approaches no polygonal correction.
Rounding
Blend from sharp corners to a smooth circle (0–1). At 0, edges are crisp; at 1, the section is fully rounded.

How It Works

Side count N is interpolated linearly from N-Gon Bottom to N-Gon Top using normalized height, then rounded to an integer each layer so the cross-section can gradually change from one polygon order to another. For each azimuth, the modulator computes how far you sit between a flat face midpoint and a vertex, and applies an inward radial indent scaled by Depth and by Rounding (at full rounding the indent goes to zero so the section reads circular).

The cosine-based indent factor peaks at face centers and vanishes at vertices, which keeps the outline a closed polygon with crisp corners when rounding is off.

Tips and Recipes