Dear Nathan,

thank you very much. This indeed resolves the syntax problem. However in
my case it does not do anything since transformations can only be
applied to the geometry, and in this case I want to apply the dilation
to the mesh. I'll keep looking for other solutions.

All the best,

Ricardo

> Hi Ricardo,
>
> The syntax for anisotropic dilation is as follows:
>
> Dilate { { expression-list }, { expression, expression, expression } } { 
> transform-list }
>
> The first expression-list is the homethetic center of the dilation.
>
> The set of three expressions are the X,Y,Z scaling factors of the dilation.
>
> The transform-list is the entities to be acted on.
>
> I think your syntax should be:
>
> Dilate{ {0,0,0}, {1,1,0} }{ Point{all_points[]}; }
>
> Assuming you want all points on the x-y plane at z=0.
>
> Nathan Neeteson, M.Sc., E.I.T.
> Flow Control Research Engineer
> RGL Reservoir Management Inc.
> Corporate Head Office
> P 780.851.8243 | C 613.929.6283
> [email protected] | rglinc.com
> API Q1(tm) and ISO 9001:2015 certified facilities.
>
> -----Original Message-----
> From: gmsh [mailto:[email protected]] On Behalf Of 
> Ricardo Ruiz Baier
> Sent: June 3, 2019 5:51 AM
> To: [email protected]
> Subject: [Gmsh] dilate to flatten a mesh
>
> 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
>
> _______________________________________________
> gmsh mailing list
> [email protected]
> https://can01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fonelab.info%2Fmailman%2Flistinfo%2Fgmsh&data=02%7C01%7Cnneeteson%40rglinc.com%7C4483902d671745d295e608d6e836c650%7C1f2819e2b6f842cd9d720c61c1a98107%7C0%7C1%7C636951719293181251&sdata=I8kwFaMvUWTg2BaS8gjWRqR73PrHRLTcF5j%2BTZU0ZrY%3D&reserved=0
> Email disclaimer located at http://rglinc.com/disclaimer


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


_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to