title: mathematical movable mesh in swift with SceneKit
body: <p>I am a mathematician who wants to program a geometric game.</p>
  
  <p>I have the exact coordinates, and math formulae, of a few meshes I need to display and of their unit normals. </p>
  
  <p>I need only one texture (colored reflective metal) per mesh. </p>
  
  <p>I need to have the user move pieces, i.e. change the coordinates of a mesh, again by a simple math formula.</p>
  
  <p>So I don't need to import 3D files, but rather I can compute everything.</p>
  
  <p>Imagine a kind of Rubik cube. Cube coordinates are computed, and cubelets are rotated by the user. I have the program functioning in Mathematica.</p>
  
  <p>I am having a very hard time, for sleepless days now, trying to find exactly how to display a computed mesh in SceneKit - with each vertex and normal animated separately.</p>
  
  <p>ANY working example of, say, a single triangle with computed coordinates (rather than a stock provided shape), displayed with animatable coordinates by SceneKit would be EXTREMELY appreciated.</p>
  
  <p>I looked more, and it seems that individual points of a mesh may not be movable in SceneKit. I like from SceneKit (unlike OpenGL) the feature that one can get the objects under the user's finger. Can one mix together OpenGL and SceneKit in a project?</p>
  
  <p>I could take over from there....</p>