Export a point list (cell center) on a line after meshing
Dear GMSH team,
I would like to know if it's possible to extract (from a .msh or .geo file) an information of the mesh on a line.
More precisely, I would like to export all the centroids of the cells that are intersected by the line.
For example, If I have a unit square mesh [0;1]x[0;1], I want to get all the cells (and their centroids) intersect by the line y = 0.5.
My goal is to plot a cutline of my volume finite simulation solution. If I don't take care, I have some steps on my cutline because my approximations are constant on each cell (P0) : so I want to plot on only one point by cell.
Thank you in advance for your answer,
Adel