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