[Gmsh] "is inside" function in API?

Christophe Geuzaine cgeuzaine at ulg.ac.be
Wed Sep 2 21:53:27 CEST 2009


Sergey Litvinov wrote:
> Hi,
> 
> I would like to use gmsh to generate initial conditions for particle
> based method.
> I need an API function to check if arbitrary point x,y (,z) belongs to
> a given Volume
> or Surface (for 2D).

If the volume/surface is meshed, you can use 
GModel::getMeshElementByCoord(), which uses a fast octree search.


> 
> Thank you for your help.
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
> 
> 


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