Iterating over the lines
I am interested in iterating over all the current lines in my mesh, inspecting the two points each Line connects and checking if their coordinates are close to a given value. If so, I would like to add a Physical Line with the Line tag. How can I do that? I need a command to get the Points in each line and then another command to inspect their coordinates.
Is there any tutorial on the gmsh scripting language? I am currently stuck simply at:
For line In {0:nL};
Printf("%f", line);
EndFor