grasshopper2 Rhinorhino3d.com
ComponentVector
Cycle Points
00000000-c296-4fb7-9ba8-f2584df218b8
object preview

Cycle a list of point until the point with the specified property is the first one.

The cycling operation keeps the point order intact, but changes which point comes first. I.e. when a list composed of the elements [🍑,🍌,🍒,🍋,🍆] is cycled one step forwards, the first item goes to the second place, the second item to the third place, and so on. Ultimately the last item is moved to the start of the list: [🍆,🍑,🍌,🍒,🍋].

The possible criteria for picking the first item include the following:

Value Name Info
0 None No cycling is performed.
1 Minimum X Point with the lowest x−coordinate.
2 Minimum Y Point with the lowest y−coordinate.
3 Minimum Z Point with the lowest z−coordinate.
4 Maximum X Point with the highest x−coordinate.
5 Maximum Y Point with the highest y−coordinate.
6 Maximum Z Point with the highest z−coordinate.
7 Sharpest Point with the smallest angle between both adjacent edges.
9 Furthest Point furthest away from the average of all points.
10 Nearest Point nearest to the average of all points.

When two or more points are all equally 'the most true' for any given criterium, the final choice is more or less random.

1
2
3
Example file CyclePoints.ghz.Interactive in Grasshopper 2
Cycle a loop of points and display the modified point order using indexed feedback.