title: Creating an array of SCNVector3 using Float in Swift
body: <p>I have a bunch of Z coordinates in an array. I want to create geometry using these values, thus I created an array of SCNVector3. X and Y values will be calculated using a simple nested loop, but the Z values will come from my array.</p>
  
  <p>Xcode is telling me: Cannot assign value of type '(x: Float, y: Float, z: Float)' to type SCNVector3</p>
  
  <p>Am I making a bonehead mistake here?</p>
  
  <p>My code right now is:</p>
  
  <pre><code>var width = 10
  var height = 20
  var zDepth = [Float]()  
  var verts = [SCNVector3]()  
  var i = 0  
  for y in 0 ..&lt; height {  
      for x in 0 ..&lt; width {  
          if i &lt; (width*height) {  
              vert[i] = (x: Float(x), y: Float(y), z: zDepth[i])  
              i += 1  
          }
      }
  }
  </code></pre>