<div dir="ltr">Thanks, that does the trick!<div><br></div><div>--Nico</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 5, 2015 at 5:41 PM Grindeanu, Iulian R. <<a href="mailto:iulian@mcs.anl.gov">iulian@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">you can use
<br>
<a href="http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a30ecd0d51554763a820513f637f09df0" target="_blank">http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#a30ecd0d51554763a820513f637f09df0</a><br>
<br>
you will have to get vertices first in a range<br>
<br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font size="2" color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:moab-dev-bounces@mcs.anl.gov" target="_blank">moab-dev-bounces@mcs.anl.gov</a> [<a href="mailto:moab-dev-bounces@mcs.anl.gov" target="_blank">moab-dev-bounces@mcs.anl.gov</a>] on behalf of Nico Schlömer [<a href="mailto:nico.schloemer@gmail.com" target="_blank">nico.schloemer@gmail.com</a>]<br>
<b>Sent:</b> Wednesday, November 04, 2015 6:32 PM<br>
<b>To:</b> <a href="mailto:moab-dev@mcs.anl.gov" target="_blank">moab-dev@mcs.anl.gov</a><br>
<b>Subject:</b> [MOAB-dev] get_vertex_coordinates()<br>
</font><br>
</div></div></div></div><div><div style="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><div style="font-family:Times New Roman;color:#000000;font-size:16px">
<div></div>
<div>
<div dir="ltr">Hi everyone,
<div><br>
</div>
<div>I'm just looking into how I can extract the vertex coordinates from a mesh, and found [1]. Curiously, the functions returns a single vector of length 3*N (N being the number of vertices), arranged like</div>
<div>```</div>
<div>x0 x1 ... xN y0 y1 ... yN z0 ... zN.</div>
<div>```</div>
<div>This I find a little weird, since typically you'll be interested inall coordinates of a single point, (xK, yK, zK), and given the above memory arrangement, you have to jump around the vector, completely eliminating the chances for cache hits. If you really
have to return a single vector, a better layout appears to be</div>
<div>```</div>
<div>x0 y0 z0 x1 y1 z1 ... </div>
<div>```</div>
<div>Perhaps there is a reason behind the above output though. What do you think?</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Nico</div>
<div><br>
</div>
<div>[1] <a href="http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#aa25d4dcabd4fb5eb0db2b7f5c3b3d6d2" target="_blank">http://www.mcs.anl.gov/~fathom/moab-docs/html/classmoab_1_1Interface.html#aa25d4dcabd4fb5eb0db2b7f5c3b3d6d2</a></div>
</div>
</div>
</div></div></div></blockquote></div>