[Gmsh] GMsh python API: all all point tags of volume
Christophe Geuzaine
cgeuzaine at uliege.be
Tue May 5 14:05:02 CEST 2020
> On 5 May 2020, at 06:15, Tian Xia <tianxia.ui at gmail.com> wrote:
>
> Hi,
>
> First of all, I'd like to thank you for the great software. It saved me a lot of time.
>
> I am trying to define a mesh size field based on the distance to the volume. I knew that there is a command "PointsOf(volume #)" for geo file. Is there a similar function in the python API? Thanks!
You can use gmsh.model.getBoundary(volume, recursive=True)
Christophe
>
> --
> Tian
> _______________________________________________
> 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