[Gmsh] dilate to flatten a mesh

Ricardo Ruiz Baier ruizbaier at maths.ox.ac.uk
Mon Jun 3 13:51:13 CEST 2019


Dear all,

I have a .mesh triangulation which is supposed to be 2D. However it has
some vertices with (spurious) crazy large z-components. How can I
flatten these from e.g. a geo file?

I've tried with "Dilate" in the manner mentioned below, but it does not
work (the compilation complains about the syntax and I have not found
any examples).

Merge "testMesh.mesh";

all_points[] = Point '*';

Dilate { { all_points[] }, { 1, 1, 0} } {Surface(1) };

Thank you so much!

Kind regards,



-- 
Ricardo Ruiz Baier
Mathematical Institute
University of Oxford
people.maths.ox.ac.uk/ruizbaier



More information about the gmsh mailing list