[Gmsh] Programmaticaly selecting entities

eren adak erad03 at gmail.com
Wed Sep 11 02:14:30 CEST 2013


Hi all,

I am trying to use select function to select entities.

std::vector<GVertex*> vertices;

std::vector<GEdge*> edges;

std::vector<GFace*> faces;

std::vector<GRegion*> regions;

std::vector<MElement*> elements;


ctx->select( ENT_POINT, false, false, x, y, 5, 5, vertices, edges, faces,
regions, elements);

The problem is that , for different x and y values the selection doesn't
change and it's always the first vertex in the model. Can anybody  explain
me how mouse selection works in gmsh ?

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130911/af072382/attachment.html>