How can I set/offset position of vertices of specific edge? In the follow example given a plane with 9 faces. When setting a value in the node "Integer: Index of edge", the two vertices connected to the edge with that index should be offset up by 0.2.
The follow solution adds a boolean flag attribute for each edge. When an edge's flag is True, its vertices are selected because of the flag value that is interpolated into the vertices domain in the selection process.
This solution has several advantages:
- It has a smaller graph.
- When wish edge index is out of range, no point will be offset.
- It can be easily modified for selecting several edges by changing the logic inside the "Edges chooser" frame.