Esempio n. 1
0
 public void Synchronize(ShapeController controller)
 {
     foreach (var meshInfo in MeshesInfo)
     {
         var tempMeshInfo = controller.MeshesInfo[meshInfo.Key];
         for (var i = 0; i < meshInfo.Value.Vertices.Count; i++)
         {
             meshInfo.Value.Vertices[i] = (meshInfo.Value.Vertices[i] + tempMeshInfo.Vertices[i]) * 0.5f;
         }
     }
 }
 public void Synchronize(ShapeController controller)
 {
     foreach (var meshInfo in MeshesInfo)
     {
         var tempMeshInfo = controller.MeshesInfo[meshInfo.Key];
         for (var i = 0; i < meshInfo.Value.Vertices.Count; i++)
         {
             meshInfo.Value.Vertices[i] = (meshInfo.Value.Vertices[i] + tempMeshInfo.Vertices[i]) * 0.5f;
         }
     }
 }