Hi,
But I have strange issue, I am sorting edges of the mesh.
But mesh edges are sorted when I plug grasshopper wires 3x times,
The code is quite simple and attached below.
The code part that does this is here, it is basically adjacency of vertex and neighbor edges
public int[][] VE(Mesh mesh) {
int[][] veSorted = new int[mesh.TopologyVertices.Count][];
for (int i = 0; i < mesh.TopologyVertices.Count; i++) {
veSorted[i] = new int[mesh.TopologyVertices.ConnectedEdgesCount(i)];
mesh.TopologyVertices.SortEdges(i);
for (int j = 0; j < mesh.TopologyVertices.ConnectedEdgesCount(i); j++) {
veSorted[i][j] = mesh.TopologyVertices.ConnectedEdge(i, j);
}
}
return veSorted;
}
OldMotorbike.gh (436.5 KB)