You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: node/documentation/concepts/geometry.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,19 +43,20 @@ Here's a simple example:
43
43
* Turn "Point Numbers" on in the Viewer pane.
44
44
* Create an [ellipse node](/node/reference/corevector/ellipse.html).
45
45
* Create a [resample node](/node/reference/corevector/resample.html). Set the **method** to **By Amount** and the **points** to **20**.
46
-
* Create a [sort node](/node/reference/corevector/sort.html).
46
+
* Create a [point node](/node/reference/corevector/point.html).
47
+
* Create a grey [sort node](/node/reference/corevector/sort.html).
47
48
* Create a [connect node](/node/reference/corevector/connect.html). Set the **fill** to transparent (alpha value = 0).
48
-
* Connect them all together: ellipse1 → resample1 → sort1 → connect1.
49
+
* Connect them all together: ellipse1 → resample1 →point1 →sort1 → connect1.
49
50
50
-

51
+

51
52
52
53
* Set the connect1 node as rendered. Note that the point numbers go clockwise around the circle, from 0 to 20.
53
-
* In sort1, change the **scope** to **Points within geometry** and the **order** to **By X**.
54
+
* In sort1, set the **order** to **By X**.
54
55
55
56
The viewer now shows this:
56
57
57
58

58
59
59
60
*What happened?* The connect node connects points of the incoming geometry, in order. By changing the *order* of the points (using the sort node), the shape changes. The points no longer follow the circle in a clockwise direction but are sorted by their X coordinates, in other words, points are sorted from left to right.
60
61
61
-
By playing with different sort orders you can get some interesting results. Try "Proximity To Point" and dragging the point handle in the viewer. Changing the ellipse to a text path and see what you can come up with (you might want to increase the text size and the number of points in resample).
62
+
By playing with different sort orders you can get some interesting results. Try "Distance To Point" and dragging the point handle in the viewer. Changing the ellipse to a text path and see what you can come up with (you might want to increase the text size and the number of points in resample).
0 commit comments