Consider a mesh like this:<br>MeshType::PointType p0,....<br>    p0[0]= -1.0; p0[1]= -1.0; p0[2]= 0.0; // first  point ( -1, -1, 0 )<br>....<br>    mesh-&gt;SetPoint( 0, p0 );<br>.....<br><br>Then I add lines connecting these points. Then I get an edge:<br>
<br>    MeshType::QEPrimal* edge = mesh-&gt;GetEdge(); //not sure which edge this is getting?<br>    <br>And the indices of the points that make up this edge:<br>    MeshType::CoordRepType origin = edge-&gt;GetOrigin();<br>
    MeshType::CoordRepType destination = edge-&gt;GetDestination();<br>    std::cout &lt;&lt; &quot;origin: &quot; &lt;&lt; origin &lt;&lt; std::endl;<br>    std::cout &lt;&lt; &quot;Destination: &quot; &lt;&lt; destination &lt;&lt; std::endl;<br>
    <br>Now I want to get back my original coordinate (-1, -1, 0). This compiles, but segfaults (the output of origin and destination was 3, 2, respectively, so these are valid point indices on the mesh):<br>    MeshType::PointType* p;<br>
    mesh-&gt;GetPoint(origin, p );<br>    std::cout &lt;&lt; &quot;p: &quot; &lt;&lt; p[0] &lt;&lt; &quot; &quot; &lt;&lt; p[1] &lt;&lt; &quot; &quot; &lt;&lt; p[2] &lt;&lt; std::endl;<br><br>The bottom line is: how do I get the coordinate of a point (and potentially other attached information) by it&#39;s mesh index?<br>
<br clear="all">Thanks,<br><br>David<br>