[Gmsh] geo script - how to get a mesh after plugin(triangulate) ?

Christophe Geuzaine cgeuzaine at uliege.be
Wed Feb 26 07:18:03 CET 2020



> On 24 Feb 2020, at 20:11, Don Van Kerkhoven <donvk at distributel.net> wrote:
> 
> Hi,
>  
> I have a point cloud that I  have successfully triangulated it but I can’t figure out how to create a mesh and save it.
>  
> What are the next steps to create and save the mesh from this triangulation ?
>  

You can export View[1] as a mesh (currently in the old MSH2 format) with

Save View[1] "mesh.msh";

Christophe


> // ------ script start ----------
> Points(1..n)
> Mesh 1;                                                // works, 
> Plugin(NewView).Run;
>  
> Plugin(CutPlane).A = 0 ;                // works, cut the cloud in XY plane
> Plugin(CutPlane).B = 0 ;
> Plugin(CutPlane).C = 1 ;
> Plugin(CutPlane).D = 0 ;
> Plugin(CutPlane).ExtractVolume= 1 ;
> Plugin(CutPlane).View = 0 ;
> Plugin(CutPlane).Run ;
>  
> Plugin(Triangulate).Run;               // works, triangulate 1/2 symmetry
>  
> // ---- script end ---------- 
>  
> thanks
> DonVK
> _______________________________________________
> gmsh mailing list
> gmsh at onelab.info
> http://onelab.info/mailman/listinfo/gmsh

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine






More information about the gmsh mailing list