title: X,Y,Z coordinates of an object in forge viewer
body: <p>I am trying to draw svg/pointcloud points on individual elements in Autodesk Forge. How to get <strong>(x,y,z)</strong> coordinates of elements. </p>
  
  <p>Is there a way to extract positions of individual object so that we have the position vector in world space. </p>
  
  <p>What I tried so far:</p>
  
  <ul>
  <li><p>I cant seem to understand how to use the positions array as described in this <a href="https://stackoverflow.com/questions/50513656/how-to-get-coordinates-i-e-vertices-from-an-object">thread</a> using
      <code>frags = viewer.impl.getRenderProxy( viewer.model, fragId )</code> </p>
  
  <p><code>positions = frags.geometry.vb</code></p></li>
  <li><p><a href="https://github.com/Autodesk-Forge/library-javascript-viewer-extensions/blob/master/src/Autodesk.ADN.Viewing.Extension.MeshData/Autodesk.ADN.Viewing.Extension.MeshData.js" rel="nofollow noreferrer">Autodesk.ADN.Viewing.Extension.MeshData.js</a> gives me the vertices of triangles (meshes/fragments) the element is made of. </p></li>
  </ul>