Esempio n. 1
0
 /// <summary>
 /// Calculates a mesh for each Surface Patch
 /// </summary>
 public void CalculateMeshes()
 {
     for (int i = 0; i < PatchAmount; i++)
     {
         for (int j = 0; j < PatchAmount; j++)
         {
             Mesh[i, j] = new SurfacePatchMesh(SurfacePatches[i, j], Resolution);
             Mesh[i, j].rebuild();
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Called when loading the script
 /// </summary>
 void Awake()
 {
     bezierPoints         = new SurfacePatch();
     CoreSurfacePatchMesh = new SurfacePatchMesh(bezierPoints, Resolution);
 }