<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I think an introduction to the API would be helpful.  Since there are a number of users with experience using the API would a collaborative document be possible?  Perhaps using something like<div><br></div><div><a href="https://www.authorea.com/">https://www.authorea.com/</a><br><br><div>Just an idea...</div><div><br><div><div>On Feb 12, 2014, at 8:02 AM, Christophe Geuzaine <<a href="mailto:cgeuzaine@ulg.ac.be">cgeuzaine@ulg.ac.be</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>On 11 Feb 2014, at 11:38, Sacconi, Andrea <<a href="mailto:a.sacconi11@imperial.ac.uk">a.sacconi11@imperial.ac.uk</a>> wrote:<br><br><blockquote type="cite">Hi all GMSH users,<br><br>I would like to ask you a quick question about the usage of the API C++ classes to extract the connectivity of the mesh, once it has been created.<br>The setting is a planar mesh of triangles. I managed to create the GModel, passing lines, planar surface and physical entities. So far, so good.<br>The problem is, how can I extract how many triangles I have got and their vertices? It seems a silly question, but I am really confused about all the methods I found. What is the method to traverse only the elements and extract their vertices?<br><br>For example, what is the difference between GVertex and MVertex? Same questions for the other geometrical objects ...<br>In general, I need to pass the connectivity information to the C++ code I am writing for my thesis simulations.<br><br></blockquote><br>Basically:<br><br>* a model is stored as a GModel<br>* the GModel contains a bunch of geometrical entities derived from GEntity (GVertex, GEdge, GFace, GRegion)<br>* each GEntity can store its mesh: i.e., both mesh elements, derived from MElement (MPoint, MLine, MTriangle, MTetrahedron, etc.), and mesh vertices (derived from MVertex)<br><br>The 2009 paper contains the basics... but we should indeed write a short introduction to the API.<span class="Apple-converted-space"> </span><br><br>Christophe<br><br><br><blockquote type="cite">Any help would be much appreciated!<br>Kind regards,<br>Andrea<br>__________________________________________________________<br><br>Andrea Sacconi<br>PhD student, Applied Mathematics<br>AMMP Section, Department of Mathematics, Imperial College London,<br>London SW7 2AZ, UK<br><a href="mailto:a.sacconi11@imperial.ac.uk">a.sacconi11@imperial.ac.uk</a><br><br>_______________________________________________<br>gmsh mailing list<br>gmsh@geuz.org<br>http://www.geuz.org/mailman/listinfo/gmsh<br></blockquote><br>--<span class="Apple-converted-space"> </span><br>Prof. Christophe Geuzaine<br>University of Liege, Electrical Engineering and Computer Science<span class="Apple-converted-space"> </span><br><a href="http://www.montefiore.ulg.ac.be/~geuzaine">http://www.montefiore.ulg.ac.be/~geuzaine</a><br><br><br><br><br>_______________________________________________<br>gmsh mailing list<br><a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br><a href="http://www.geuz.org/mailman/listinfo/gmsh">http://www.geuz.org/mailman/listinfo/gmsh</a></div></blockquote></div><br></div></div></body></html>