<div>Hi all,</div>
<div> </div>
<div>I am trying to use select function to select entities.</div>
<div><font face="Consolas"><font face="Consolas">
<p>std::vector<GVertex*> vertices;</p>
<p>std::vector<GEdge*> edges;</p>
<p>std::vector<GFace*> faces;</p>
<p>std::vector<GRegion*> regions;</p>
<p>std::vector<MElement*> elements;</p></font></font></div>
<div> </div>
<div><font face="Consolas"><font face="Consolas">
<p>ctx->select( <font face="Consolas"><font face="Consolas">ENT_POINT</font></font>, </p></font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">false</font></font></font><font face="Consolas"><font face="Consolas">, </font></font><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas"><font color="#0000ff" face="Consolas">false</font></font></font><font face="Consolas"><font face="Consolas">, </font></font><font face="Consolas"><font face="Consolas">x, </font></font><font face="Consolas"><font face="Consolas">y, 5, 5, vertices, edges, faces, regions, elements);</font></font>
<p><font face="Consolas"><font face="Consolas"><font face="arial,helvetica,sans-serif">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 ?</font></font></font></p>
<p>Thanks in advance.</p></div>