vJSONGridConnect
Builds edge lists for a grid of points as rows, columns, zigzags, diagonals or a border.

vJSONGridConnect has no point input. From Number X and Number Y it outputs edge lists as point numbers, ready for the Edge input of vJSONShapeRender. Direction picks the pattern.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| Number X | Integer | 1 | Points per row. Range 1 to 10000, slider 1 to 100, default 1. |
| Number Y | Integer | 1 | Number of rows. Range 1 to 10000, slider 1 to 100, default 1. |
| Direction | Dropdown | Horizontal | Horizontal (default), Vertical, Both, Zigzag (Horizontal), Zigzag (Vertical), Diagonal (Both Directions) or Border Only. |
| Stride (skip N lines) | Integer | 1 | Keeps every Nth row or column in Horizontal, Vertical and Both. Range 1 to 10000, default 1. |
| Zigzag: Reverse Start | Integer | 0 | Flips the starting direction of the zigzag. Default off. |
Read the full description
The node assumes a grid of Number X points per row and Number Y rows, numbered row by row from 1, so point (column, row) has the number row * Number X + column + 1. It outputs lists of these numbers.
Horizontal gives one line per row, Vertical one per column, and Both gives both. Stride (default 1) skips lines in those three modes. Zigzag (Horizontal) and Zigzag (Vertical) give one line that alternates direction, and Reverse Start flips the first direction. Diagonal gives lines in both diagonal directions. Border Only gives a closed loop around the grid.
Example Connections
- Draw grid lines
- Connect a displaced grid
vJSONPointsOnGrid.Output -> vJSONCameraProjection.ArrayA
vJSONCameraProjection.Output -> vJSONShapeRender.ArrayPoint
vJSONGridConnect.Output -> vJSONShapeRender.ArrayEdge
Background.Output -> vJSONShapeRender.Input
vJSONPointsOnGrid.Output -> vJSONDisplaceValues.ArrayA
vJSONDisplaceValues.Output -> vJSONCameraProjection.ArrayA
vJSONGridConnect.Output -> vJSONShapeRender.ArrayEdge