Documentation / Node reference / geo nodes
geo/SDFSegment2D
Creates a 2D SDF line segment in the XY plane.
Sdf Primitives
Creates a line segment as a 2D SDF field in the XY plane. A segment has no interior, so the field is the unsigned distance to it: the shape is the segment itself, with zero area. Wrap it in geo/SDFRound to give it a thickness, which turns it into a 2D capsule. 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. 2D and 3D SDF objects cannot combine directly. Plane coordinates are world X and world Y.
Parameters
| Name | Type | What it does |
|---|---|---|
| a | Vector2 | First end of the segment, in plane coordinates. |
| b | Vector2 | Second end of the segment, in plane coordinates. |
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.