Documentation / Node reference / geo nodes
geo/SDFBox2D
Creates a 2D SDF rectangle in the XY plane.
Sdf Primitives
Creates a rectangle as a 2D SDF field in the XY plane, the same plane the M2D nodes, SVG and flat text use. It displays as a distance-field visualization on its bounds: warm outside, cool inside, distance bands, and a white isoline on the shape itself. Compose it with other 2D SDF objects through geo/SDFBoolean and geo/SDFRepeat, then turn it into a 3D field with geo/SDFExtrude or geo/SDFRevolve, or into real geometry with geo/SDFTriangulate, which gives a 2D field its outline as segments or as a 2D manifold. 2D and 3D SDF objects cannot combine directly. The `t` and `size` params are in plane coordinates: x is world X, y is world Y.
Set `bevel` to ROUND or CHAMFER to round or cut the corners. The cut goes into the rectangle, so its sides stay where they were. Every corner can have its own size: `bevelSize` sets all four, and `cornerSizes` adds to it corner by corner, so a bevelSize of 0 with only two corner sizes set rounds just those two. The distance stays exact either way.
Parameters
| Name | Type | What it does |
|---|---|---|
| t | Vector2 | Rectangle center, in plane coordinates (x is world X, y is world Y). |
| size | Vector2 | Rectangle size per plane axis, multiplied by `scale`. |
| scale | Float | Uniform scale applied to `size`, and to the bevel sizes. |
| bevel | UInt8 NONE · ROUND · CHAMFER | How the corners are shaped: NONE leaves them square, ROUND rounds them, CHAMFER cuts them off straight. |
| bevelSize | Float | Bevel size of all four corners: the radius of a round corner, or how far a chamfer reaches along each side. A corner never grows past half the shorter side. |
| cornerSizes | Vector4 | Added to `bevelSize`, one corner at a time, going round from the top right: x is top right, y top left, z bottom left, w bottom right. Negative values shrink a corner, down to square. |
See also
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.