Documentation / Node reference / geo nodes
geo/Line
A polyline, straight or through the points you give it.
Primitives
With nothing plugged in, this is a straight line: it starts at `origin`, runs along `direction` for `length`, and is cut into `pointsCount` evenly spaced points.
Plug something in and it becomes the polyline THROUGH THAT INPUT'S POINTS. They are joined up in the order they arrive and nothing else happens to them: no resampling, no smoothing, no point moved. `origin`, `direction`, `length` and `pointsCount` are ignored. A geo/Add of hand-placed points into here is the shortest route from a few positions to a drawable polyline.
Each input OBJECT becomes its own polyline, so several objects in gives several out rather than one. The dimension comes from each input too: a 2D input gives a 2D polyline, since joining points up cannot make a flat thing three-dimensional.
Use geo/Curve instead when the points are control points to be smoothed or resampled; its SOURCE POINTS method is this node's behaviour, with a tangent attribute on top.
Parameters
| Name | Type | What it does |
|---|---|---|
| length | Float | How long the straight line is. Ignored when something is plugged in. |
| pointsCount | UInt32 | How many points the straight line is cut into. Ignored when something is plugged in, where the count comes from the input. |
| origin | Vector3 | Where the straight line starts. Ignored when something is plugged in. |
| direction | Vector3 | Which way the straight line runs. Ignored when something is plugged in. |
| asPoints | Bool | Output loose points instead of a polyline of segments. |
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.