[Gmsh] Surface mesh of an STL model

David Colignon David.Colignon at ulg.ac.be
Wed Jul 29 11:54:59 CEST 2009


Mike B. wrote:
> Hi Dave,
> 
> Thanks for the prompt reply.
> 
> So to STL mesh is determined by whatever created the STL model?.


Unfortunately, yes.

If I remember well , there was an EXPERIMENTAL STL remesher in the rather old 1.65 version ( 
http://geuz.org/gmsh/bin/Windows/gmsh-1.65.0-Windows.zip)

Dave



> 
> Cheers,
> Mike.
> 
> --- On *Wed, 7/29/09, David Colignon /<David.Colignon at ulg.ac.be>/* wrote:
> 
> 
>     From: David Colignon <David.Colignon at ulg.ac.be>
>     Subject: Re: [Gmsh] Surface mesh of an STL model
>     To: "Mike B." <mb78aa at yahoo.com>
>     Cc: "Gmsh mai. lis." <gmsh at geuz.org>
>     Date: Wednesday, July 29, 2009, 7:38 PM
> 
>     Hi Mike,
> 
>     from:  http://www.geuz.org/pipermail/gmsh/2008/003744.html
> 
>     ...
>     Gmsh will not remesh these STL faces, though. It's something we will
>     reintroduce at some point, but the remesher is not ready yet.
>     ...
> 
> 
>     Cheers,
> 
>     Dave
> 
> 
>     --
>     David Colignon, Ph.D.
>     Collaborateur Logistique du F.R.S.-FNRS
>     CÉCI - Consortium des Équipements de Calcul Intensif
>     ACE - Applied & Computational Electromagnetics
>     Institut Montefiore B28
>     Université de Liège
>     4000 Liège - BELGIQUE
>     Tél: +32 (0)4 366 37 32
>     Fax: +32 (0)4 366 29 10
>     WWW:    http://hpc.montefiore.ulg.ac.be/
>     Agenda:
>     http://www.google.com/calendar/embed?src=david.colignon%40gmail.com
> 
> 
>     Mike B. wrote:
>      > Dear All,
>      >
>      > I have an STL model which I load (with the `Merge' command)  into
>     Gmsh. The model is a boundary representation (a shell).
>      >
>      > When meshing this model (and others), the mesh on the surface of
>     the model seems fixed and unaffected by the characteristic length
>     settings. Any suggestions how to control this surface mesh
>     (preferably with fields)?.
>      >
>      > Here is a simple script which loads `sph.stl', a sphere shell in
>     saved STL format:
>      >
>      > Mesh.CharacteristicLengthFromPoints = 0;
>      > Mesh.CharacteristicLengthExtendFromBoundary = 1;
>      > Mesh.CharacteristicLengthFromCurvature = 0;
>      > Mesh.Format = 1;
>      > Mesh.CharacteristicLengthMin = 0.01;
>      > Mesh.CharacteristicLengthMax = 0.05;
>      > Merge "sph.stl";
>      > Surface Loop( 1 ) = { 1 };
>      > Mesh 2;
>      > Save "sph.msh";
>      >
>      > Cheers,
>      > Mike.
>      >
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > gmsh mailing list
>      > gmsh at geuz.org </mc/compose?to=gmsh at geuz.org>
>      > http://www..geuz.org/mailman/listinfo/gmsh
>     <http://www.geuz.org/mailman/listinfo/gmsh>
> 
>