title: Getting the positions of vertices in a node scenekit
body: <p>I have a programmatically created plane, and i would like to get the coordinates of one vertex that the plane has. Something like this: <code>print(Plane.vertices[1].position)</code> and it might print something like: (x: 1, y: 1), and <code>print(Plane.vertices[2].position)</code> prints (x - 1, y: 1)</p>
  
  <p><a href="https://i.stack.imgur.com/fF57V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fF57V.png" alt="enter image description here"></a>
  This is how i created the plane: </p>
  
  <pre><code>let positions = [SCNVector3Make(  0, -0.1,  0),
                           SCNVector3Make(  0.3, -0.1,  0),
  
                           SCNVector3Make(  0,  0.1,  0),
                           SCNVector3Make(  0.3,  0.1,  0),
                           ]
          let indices :[UInt16] = [
  
              0, 1, 2,
              1, 3, 2,
              ]
  
          let vertexSource = SCNGeometrySource(vertices: positions, count: 4)
          let indexData = NSData(bytes: indices, length: MemoryLayout&lt;CInt&gt;.size * indices.count)
  
  
          let newElement = SCNGeometryElement(data: NSData(bytes: indices, length: indices.count * MemoryLayout&lt;Int16&gt;.size) as Data, primitiveType: .triangles , primitiveCount: 2, bytesPerIndex: MemoryLayout&lt;Int16&gt;.size)
  
          let geometry = SCNGeometry(sources: [vertexSource], elements: [newElement])
          custom = SCNNode(geometry: geometry)
          scene.rootNode.addChildNode(custom!)
          custom?.position = SCNVector3Make(0, 0, 0)
  </code></pre>
  
  <p>I think that this could somehow be done with transform, but custom's transform has a lot of weird things like m11, m12, m13 which i don't understand. </p>