#This template will export all element edges in a triangular mesh layer Redirect output to: $BaseName$ Loop for: Elements # Output all edges # the output (for each edge )will be: # elem1 elem2 node1 node2 # where: # elem1 is the number of the element with the higher number # elem2 is the number of the element with the lower number (0 if this is # a boundary edge) # node1 is the first node of the edge (counterclockwise when looking from elem1) # node2 is the second node of the edge If: NthNeighbourNum(1) < ElementNumber() Start a new line Export expression: ElementNumber(); [I10] Export expression: NthNeighbourNum(1); [I10] Export expression: NthNodeNum(1); [I10] Export expression: NthNodeNum(2) [I10] End line End if If: NthNeighbourNum(2) < ElementNumber() Start a new line Export expression: ElementNumber(); [I10] Export expression: NthNeighbourNum(2); [I10] Export expression: NthNodeNum(2); [I10] Export expression: NthNodeNum(3) [I10] End line End if If: NthNeighbourNum(3) < ElementNumber() Start a new line Export expression: ElementNumber(); [I10] Export expression: NthNeighbourNum(3); [I10] Export expression: NthNodeNum(3); [I10] Export expression: NthNodeNum(1) [I10] End line End if End loop End file