UModeler X MCPis live — model with an AI agent
UModeler X

N-gon

A flat N-gon, or a prism extruded from it.

N-gon is a single flat polygon or a prism extruded from it. Its caps stay as single n-gon faces, which behaves much better under later edits such as inset and bevel.


Geometry

Builds the outline, then produces one of two results depending on thickness.

  • Thickness 0 — a single flat n-gon face (normal +Y)
  • Thickness above 0 — bottom and top caps plus an extruded side wall

The caps are single n-gon faces with no triangulation. Unlike a Cylinder disc cap, they stay clean under inset and bevel.

Turning on Curved replaces the outline with a closed Catmull-Rom curve through the control points. The control point count is the Sides value, and radius is then only the seed used when the points are first laid out.


Parameters

LabelScript keyDefaultRangeDescription
Radiusr10.01 ~ 1000Circumradius in meters — in curved mode, the seed for the initial CP layout
Thicknessth00 ~ 1000Extrusion thickness in meters — 0 gives a single flat face
Sidessides63 ~ 128Vertex count — in curved mode, the number of control points
Curve Segmentsdepthsegs81 ~ 64Curve divisions per span (curved mode only)
Curvedcurvedoffon / offWhen on, the outline becomes a closed curve through the control points

The Curve Segments row appears in the Inspector only when Curved is on. Control point positions in curved mode are editable only in the editor.


How to create

  1. Drag in empty space — the drag distance becomes the circumradius.

  2. Click to confirm, then move the mouse up to set the Thickness. Near zero it snaps to a single flat face, so a plain click also yields a flat n-gon.

  3. Click again to finish.


Scene view editing

In straight mode the ±X and ±Z handles drive Radius and the ±Y handles drive Thickness.

In Curved mode control point handles replace the size handles. The interaction matches NURBS Surface, and Reset Points restores the regular polygon layout.


Tips

For hexagonal tiles, octagonal columns and bolt heads, N-gon beats Cylinder — the single-face caps keep later edits clean.

An N-gon at Thickness 0 makes a good floor decal, shadow plane or UI backing plate.

For an arbitrary flat silhouette such as a pond or a flower bed, turn on Curved and place the control points.


Script

In a script this shape is written as ngon.

ngon "HexTile" r=1 sides=6 th=0 @0,0,0
ngon "OctColumn" r=0.4 sides=8 th=3 @3,0,0
ngon "Pond" r=4 sides=10 curved=1 depthsegs=12 @10,0,0

See also — Shape Type List · Creating Shapes and Modes · Scene Script Syntax

N-gon | UModeler X Manual