3dSynth

Docs / Node Sculptor

Open in the interactive docs reader

Rectangle

Closed rectangle (optionally rounded) on the XY plane.

Node

Interactive preview is available in the interactive reader.

Sockets

center (in)
Vector3. Rectangle centre (default [0, 0, 0]).
width (in)
Float. Full width along X (default 20).
height (in)
Float. Full height along Y (default 10).
cornerRadius (in)
Float. Fillet radius (default 0 — sharp corners).
path (out)
Path — closed rectangle polyline.

Parameters

Corner Segments
Number of polyline segments per rounded corner. Default: 8. Only relevant when cornerRadius > 0.

How It Works

With cornerRadius = 0 the output is four points — a minimal quad. With a non-zero corner radius, each corner is replaced by a quarter-arc sampled at cornerSegments + 1 points, and the straight edges become the line segments between the arc endpoints.

Corner radius is clamped to min(width, height) / 2 so over-large radii degrade gracefully to a stadium / capsule shape rather than producing a degenerate polygon.

Tips