Is there any way to reset the default meshes?

I was using an editor script to edit meshes, and edited the shared mesh for the sphere. It is now all sorts of messed up and I cannot figure out how to reset the sphere.

I tried to re-import all assets, but that does not seem to have resolved the problem.

Last time I broke the built-in meshes that way, quitting and restarting fixed it. But my broke while running. And you’ve clearly quit, switched projects, restarted … already.

You could print out the values for the built-in icosphere from a non-gunked project, in array-code format ({"v1","v2"...) and then paste that into your editor script to copy them back.

Got it working using Owen Reynolds Solution.

Here are the two code files I used in case someone else ever needs them:

rebuild_sphere.cs

using UnityEngine;
using UnityEditor;

[RequireComponent (typeof(MeshFilter))]
[ExecuteInEditMode]
public class rebuild_sphere : MonoBehaviour{ 
	static Vector3[] vertices = {new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.1f, -0.5f, -0.1f), new Vector3(-0.1f, -0.5f, -0.1f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.0f, -0.5f, -0.2f), new Vector3(0.0f, -0.5f, -0.1f), new Vector3(0.1f, -0.5f, -0.1f), new Vector3(0.1f, -0.5f, -0.1f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.2f, -0.5f, 0.0f), new Vector3(0.1f, -0.5f, 0.0f), new Vector3(0.1f, -0.5f, 0.1f), new Vector3(0.1f, -0.5f, 0.1f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(0.0f, -0.5f, 0.2f), new Vector3(0.0f, -0.5f, 0.1f), new Vector3(-0.1f, -0.5f, 0.1f), new Vector3(-0.1f, -0.5f, 0.1f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.2f, -0.5f, 0.0f), new Vector3(-0.2f, -0.4f, -0.1f), new Vector3(-0.2f, -0.4f, -0.1f), new Vector3(-0.1f, -0.4f, -0.2f), new Vector3(-0.1f, -0.4f, -0.2f), new Vector3(0.0f, -0.4f, -0.2f), new Vector3(0.1f, -0.4f, -0.2f), new Vector3(0.1f, -0.4f, -0.2f), new Vector3(0.2f, -0.4f, -0.1f), new Vector3(0.2f, -0.4f, -0.1f), new Vector3(0.2f, -0.4f, 0.0f), new Vector3(0.2f, -0.4f, 0.1f), new Vector3(0.2f, -0.4f, 0.1f), new Vector3(0.1f, -0.4f, 0.2f), new Vector3(0.1f, -0.4f, 0.2f), new Vector3(0.0f, -0.4f, 0.2f), new Vector3(-0.1f, -0.4f, 0.2f), new Vector3(-0.1f, -0.4f, 0.2f), new Vector3(-0.2f, -0.4f, 0.1f), new Vector3(-0.2f, -0.4f, 0.1f), new Vector3(-0.2f, -0.4f, 0.0f), new Vector3(-0.3f, -0.4f, -0.1f), new Vector3(-0.2f, -0.4f, -0.2f), new Vector3(-0.2f, -0.4f, -0.2f), new Vector3(-0.1f, -0.4f, -0.3f), new Vector3(0.0f, -0.4f, -0.3f), new Vector3(0.1f, -0.4f, -0.3f), new Vector3(0.2f, -0.4f, -0.2f), new Vector3(0.2f, -0.4f, -0.2f), new Vector3(0.3f, -0.4f, -0.1f), new Vector3(0.3f, -0.4f, 0.0f), new Vector3(0.3f, -0.4f, 0.1f), new Vector3(0.2f, -0.4f, 0.2f), new Vector3(0.2f, -0.4f, 0.2f), new Vector3(0.1f, -0.4f, 0.3f), new Vector3(0.0f, -0.4f, 0.3f), new Vector3(-0.1f, -0.4f, 0.3f), new Vector3(-0.2f, -0.4f, 0.2f), new Vector3(-0.2f, -0.4f, 0.2f), new Vector3(-0.3f, -0.4f, 0.1f), new Vector3(-0.3f, -0.4f, 0.0f), new Vector3(-0.3f, -0.4f, -0.1f), new Vector3(-0.3f, -0.4f, -0.2f), new Vector3(-0.2f, -0.4f, -0.3f), new Vector3(-0.1f, -0.4f, -0.3f), new Vector3(0.0f, -0.4f, -0.4f), new Vector3(0.1f, -0.4f, -0.3f), new Vector3(0.2f, -0.4f, -0.3f), new Vector3(0.3f, -0.4f, -0.2f), new Vector3(0.3f, -0.4f, -0.1f), new Vector3(0.4f, -0.4f, 0.0f), new Vector3(0.3f, -0.4f, 0.1f), new Vector3(0.3f, -0.4f, 0.2f), new Vector3(0.2f, -0.4f, 0.3f), new Vector3(0.1f, -0.4f, 0.3f), new Vector3(0.0f, -0.4f, 0.4f), new Vector3(-0.1f, -0.4f, 0.3f), new Vector3(-0.2f, -0.4f, 0.3f), new Vector3(-0.3f, -0.4f, 0.2f), new Vector3(-0.3f, -0.4f, 0.1f), new Vector3(-0.4f, -0.4f, 0.0f), new Vector3(-0.4f, -0.3f, -0.1f), new Vector3(-0.3f, -0.3f, -0.2f), new Vector3(-0.2f, -0.3f, -0.3f), new Vector3(-0.1f, -0.3f, -0.4f), new Vector3(0.0f, -0.3f, -0.4f), new Vector3(0.1f, -0.3f, -0.4f), new Vector3(0.2f, -0.3f, -0.3f), new Vector3(0.3f, -0.3f, -0.2f), new Vector3(0.4f, -0.3f, -0.1f), new Vector3(0.4f, -0.3f, 0.0f), new Vector3(0.4f, -0.3f, 0.1f), new Vector3(0.3f, -0.3f, 0.2f), new Vector3(0.2f, -0.3f, 0.3f), new Vector3(0.1f, -0.3f, 0.4f), new Vector3(0.0f, -0.3f, 0.4f), new Vector3(-0.1f, -0.3f, 0.4f), new Vector3(-0.2f, -0.3f, 0.3f), new Vector3(-0.3f, -0.3f, 0.2f), new Vector3(-0.4f, -0.3f, 0.1f), new Vector3(-0.4f, -0.3f, 0.0f), new Vector3(-0.4f, -0.2f, -0.1f), new Vector3(-0.4f, -0.2f, -0.3f), new Vector3(-0.3f, -0.2f, -0.4f), new Vector3(-0.1f, -0.2f, -0.4f), new Vector3(0.0f, -0.2f, -0.4f), new Vector3(0.1f, -0.2f, -0.4f), new Vector3(0.3f, -0.2f, -0.4f), new Vector3(0.4f, -0.2f, -0.3f), new Vector3(0.4f, -0.2f, -0.1f), new Vector3(0.4f, -0.2f, 0.0f), new Vector3(0.4f, -0.2f, 0.1f), new Vector3(0.4f, -0.2f, 0.3f), new Vector3(0.3f, -0.2f, 0.4f), new Vector3(0.1f, -0.2f, 0.4f), new Vector3(0.0f, -0.2f, 0.4f), new Vector3(-0.1f, -0.2f, 0.4f), new Vector3(-0.3f, -0.2f, 0.4f), new Vector3(-0.4f, -0.2f, 0.3f), new Vector3(-0.4f, -0.2f, 0.1f), new Vector3(-0.4f, -0.2f, 0.0f), new Vector3(-0.5f, -0.2f, -0.1f), new Vector3(-0.4f, -0.2f, -0.3f), new Vector3(-0.3f, -0.2f, -0.4f), new Vector3(-0.1f, -0.2f, -0.5f), new Vector3(0.0f, -0.2f, -0.5f), new Vector3(0.1f, -0.2f, -0.5f), new Vector3(0.3f, -0.2f, -0.4f), new Vector3(0.4f, -0.2f, -0.3f), new Vector3(0.5f, -0.2f, -0.1f), new Vector3(0.5f, -0.2f, 0.0f), new Vector3(0.5f, -0.2f, 0.1f), new Vector3(0.4f, -0.2f, 0.3f), new Vector3(0.3f, -0.2f, 0.4f), new Vector3(0.1f, -0.2f, 0.5f), new Vector3(0.0f, -0.2f, 0.5f), new Vector3(-0.1f, -0.2f, 0.5f), new Vector3(-0.3f, -0.2f, 0.4f), new Vector3(-0.4f, -0.2f, 0.3f), new Vector3(-0.5f, -0.2f, 0.1f), new Vector3(-0.5f, -0.2f, 0.0f), new Vector3(-0.5f, -0.1f, -0.2f), new Vector3(-0.4f, -0.1f, -0.3f), new Vector3(-0.3f, -0.1f, -0.4f), new Vector3(-0.2f, -0.1f, -0.5f), new Vector3(0.0f, -0.1f, -0.5f), new Vector3(0.2f, -0.1f, -0.5f), new Vector3(0.3f, -0.1f, -0.4f), new Vector3(0.4f, -0.1f, -0.3f), new Vector3(0.5f, -0.1f, -0.2f), new Vector3(0.5f, -0.1f, 0.0f), new Vector3(0.5f, -0.1f, 0.2f), new Vector3(0.4f, -0.1f, 0.3f), new Vector3(0.3f, -0.1f, 0.4f), new Vector3(0.2f, -0.1f, 0.5f), new Vector3(0.0f, -0.1f, 0.5f), new Vector3(-0.2f, -0.1f, 0.5f), new Vector3(-0.3f, -0.1f, 0.4f), new Vector3(-0.4f, -0.1f, 0.3f), new Vector3(-0.5f, -0.1f, 0.2f), new Vector3(-0.5f, -0.1f, 0.0f), new Vector3(-0.5f, 0.0f, -0.2f), new Vector3(-0.4f, 0.0f, -0.3f), new Vector3(-0.3f, 0.0f, -0.4f), new Vector3(-0.2f, 0.0f, -0.5f), new Vector3(0.0f, 0.0f, -0.5f), new Vector3(0.2f, 0.0f, -0.5f), new Vector3(0.3f, 0.0f, -0.4f), new Vector3(0.4f, 0.0f, -0.3f), new Vector3(0.5f, 0.0f, -0.2f), new Vector3(0.5f, 0.0f, 0.0f), new Vector3(0.5f, 0.0f, 0.2f), new Vector3(0.4f, 0.0f, 0.3f), new Vector3(0.3f, 0.0f, 0.4f), new Vector3(0.2f, 0.0f, 0.5f), new Vector3(0.0f, 0.0f, 0.5f), new Vector3(-0.2f, 0.0f, 0.5f), new Vector3(-0.3f, 0.0f, 0.4f), new Vector3(-0.4f, 0.0f, 0.3f), new Vector3(-0.5f, 0.0f, 0.2f), new Vector3(-0.5f, 0.0f, 0.0f), new Vector3(-0.5f, 0.1f, -0.2f), new Vector3(-0.4f, 0.1f, -0.3f), new Vector3(-0.3f, 0.1f, -0.4f), new Vector3(-0.2f, 0.1f, -0.5f), new Vector3(0.0f, 0.1f, -0.5f), new Vector3(0.2f, 0.1f, -0.5f), new Vector3(0.3f, 0.1f, -0.4f), new Vector3(0.4f, 0.1f, -0.3f), new Vector3(0.5f, 0.1f, -0.2f), new Vector3(0.5f, 0.1f, 0.0f), new Vector3(0.5f, 0.1f, 0.2f), new Vector3(0.4f, 0.1f, 0.3f), new Vector3(0.3f, 0.1f, 0.4f), new Vector3(0.2f, 0.1f, 0.5f), new Vector3(0.0f, 0.1f, 0.5f), new Vector3(-0.2f, 0.1f, 0.5f), new Vector3(-0.3f, 0.1f, 0.4f), new Vector3(-0.4f, 0.1f, 0.3f), new Vector3(-0.5f, 0.1f, 0.2f), new Vector3(-0.5f, 0.1f, 0.0f), new Vector3(-0.5f, 0.2f, -0.1f), new Vector3(-0.4f, 0.2f, -0.3f), new Vector3(-0.3f, 0.2f, -0.4f), new Vector3(-0.1f, 0.2f, -0.5f), new Vector3(0.0f, 0.2f, -0.5f), new Vector3(0.1f, 0.2f, -0.5f), new Vector3(0.3f, 0.2f, -0.4f), new Vector3(0.4f, 0.2f, -0.3f), new Vector3(0.5f, 0.2f, -0.1f), new Vector3(0.5f, 0.2f, 0.0f), new Vector3(0.5f, 0.2f, 0.1f), new Vector3(0.4f, 0.2f, 0.3f), new Vector3(0.3f, 0.2f, 0.4f), new Vector3(0.1f, 0.2f, 0.5f), new Vector3(0.0f, 0.2f, 0.5f), new Vector3(-0.1f, 0.2f, 0.5f), new Vector3(-0.3f, 0.2f, 0.4f), new Vector3(-0.4f, 0.2f, 0.3f), new Vector3(-0.5f, 0.2f, 0.1f), new Vector3(-0.5f, 0.2f, 0.0f), new Vector3(-0.4f, 0.2f, -0.1f), new Vector3(-0.4f, 0.2f, -0.3f), new Vector3(-0.3f, 0.2f, -0.4f), new Vector3(-0.1f, 0.2f, -0.4f), new Vector3(0.0f, 0.2f, -0.4f), new Vector3(0.1f, 0.2f, -0.4f), new Vector3(0.3f, 0.2f, -0.4f), new Vector3(0.4f, 0.2f, -0.3f), new Vector3(0.4f, 0.2f, -0.1f), new Vector3(0.4f, 0.2f, 0.0f), new Vector3(0.4f, 0.2f, 0.1f), new Vector3(0.4f, 0.2f, 0.3f), new Vector3(0.3f, 0.2f, 0.4f), new Vector3(0.1f, 0.2f, 0.4f), new Vector3(0.0f, 0.2f, 0.4f), new Vector3(-0.1f, 0.2f, 0.4f), new Vector3(-0.3f, 0.2f, 0.4f), new Vector3(-0.4f, 0.2f, 0.3f), new Vector3(-0.4f, 0.2f, 0.1f), new Vector3(-0.4f, 0.2f, 0.0f), new Vector3(-0.4f, 0.3f, -0.1f), new Vector3(-0.3f, 0.3f, -0.2f), new Vector3(-0.2f, 0.3f, -0.3f), new Vector3(-0.1f, 0.3f, -0.4f), new Vector3(0.0f, 0.3f, -0.4f), new Vector3(0.1f, 0.3f, -0.4f), new Vector3(0.2f, 0.3f, -0.3f), new Vector3(0.3f, 0.3f, -0.2f), new Vector3(0.4f, 0.3f, -0.1f), new Vector3(0.4f, 0.3f, 0.0f), new Vector3(0.4f, 0.3f, 0.1f), new Vector3(0.3f, 0.3f, 0.2f), new Vector3(0.2f, 0.3f, 0.3f), new Vector3(0.1f, 0.3f, 0.4f), new Vector3(0.0f, 0.3f, 0.4f), new Vector3(-0.1f, 0.3f, 0.4f), new Vector3(-0.2f, 0.3f, 0.3f), new Vector3(-0.3f, 0.3f, 0.2f), new Vector3(-0.4f, 0.3f, 0.1f), new Vector3(-0.4f, 0.3f, 0.0f), new Vector3(-0.3f, 0.4f, -0.1f), new Vector3(-0.3f, 0.4f, -0.2f), new Vector3(-0.2f, 0.4f, -0.3f), new Vector3(-0.1f, 0.4f, -0.3f), new Vector3(0.0f, 0.4f, -0.4f), new Vector3(0.1f, 0.4f, -0.3f), new Vector3(0.2f, 0.4f, -0.3f), new Vector3(0.3f, 0.4f, -0.2f), new Vector3(0.3f, 0.4f, -0.1f), new Vector3(0.4f, 0.4f, 0.0f), new Vector3(0.3f, 0.4f, 0.1f), new Vector3(0.3f, 0.4f, 0.2f), new Vector3(0.2f, 0.4f, 0.3f), new Vector3(0.1f, 0.4f, 0.3f), new Vector3(0.0f, 0.4f, 0.4f), new Vector3(-0.1f, 0.4f, 0.3f), new Vector3(-0.2f, 0.4f, 0.3f), new Vector3(-0.3f, 0.4f, 0.2f), new Vector3(-0.3f, 0.4f, 0.1f), new Vector3(-0.4f, 0.4f, 0.0f), new Vector3(-0.3f, 0.4f, -0.1f), new Vector3(-0.2f, 0.4f, -0.2f), new Vector3(-0.2f, 0.4f, -0.2f), new Vector3(-0.1f, 0.4f, -0.3f), new Vector3(0.0f, 0.4f, -0.3f), new Vector3(0.1f, 0.4f, -0.3f), new Vector3(0.2f, 0.4f, -0.2f), new Vector3(0.2f, 0.4f, -0.2f), new Vector3(0.3f, 0.4f, -0.1f), new Vector3(0.3f, 0.4f, 0.0f), new Vector3(0.3f, 0.4f, 0.1f), new Vector3(0.2f, 0.4f, 0.2f), new Vector3(0.2f, 0.4f, 0.2f), new Vector3(0.1f, 0.4f, 0.3f), new Vector3(0.0f, 0.4f, 0.3f), new Vector3(-0.1f, 0.4f, 0.3f), new Vector3(-0.2f, 0.4f, 0.2f), new Vector3(-0.2f, 0.4f, 0.2f), new Vector3(-0.3f, 0.4f, 0.1f), new Vector3(-0.3f, 0.4f, 0.0f), new Vector3(-0.2f, 0.4f, -0.1f), new Vector3(-0.2f, 0.4f, -0.1f), new Vector3(-0.1f, 0.4f, -0.2f), new Vector3(-0.1f, 0.4f, -0.2f), new Vector3(0.0f, 0.4f, -0.2f), new Vector3(0.1f, 0.4f, -0.2f), new Vector3(0.1f, 0.4f, -0.2f), new Vector3(0.2f, 0.4f, -0.1f), new Vector3(0.2f, 0.4f, -0.1f), new Vector3(0.2f, 0.4f, 0.0f), new Vector3(0.2f, 0.4f, 0.1f), new Vector3(0.2f, 0.4f, 0.1f), new Vector3(0.1f, 0.4f, 0.2f), new Vector3(0.1f, 0.4f, 0.2f), new Vector3(0.0f, 0.4f, 0.2f), new Vector3(-0.1f, 0.4f, 0.2f), new Vector3(-0.1f, 0.4f, 0.2f), new Vector3(-0.2f, 0.4f, 0.1f), new Vector3(-0.2f, 0.4f, 0.1f), new Vector3(-0.2f, 0.4f, 0.0f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(-0.1f, 0.5f, -0.1f), new Vector3(-0.1f, 0.5f, -0.1f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.0f, 0.5f, -0.2f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.1f, 0.5f, -0.1f), new Vector3(0.1f, 0.5f, -0.1f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.2f, 0.5f, 0.0f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.1f, 0.5f, 0.1f), new Vector3(0.1f, 0.5f, 0.1f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(0.0f, 0.5f, 0.2f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(-0.1f, 0.5f, 0.1f), new Vector3(-0.1f, 0.5f, 0.1f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(-0.2f, 0.5f, 0.0f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.0f, 0.5f, -0.1f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.1f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(0.0f, 0.5f, 0.1f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.1f, -0.5f, 0.0f), new Vector3(-0.2f, -0.4f, -0.1f), new Vector3(-0.3f, -0.4f, -0.1f), new Vector3(-0.3f, -0.4f, -0.1f), new Vector3(-0.3f, -0.4f, -0.1f), new Vector3(-0.3f, -0.4f, -0.2f), new Vector3(-0.3f, -0.4f, -0.2f), new Vector3(-0.2f, -0.4f, -0.3f), new Vector3(-0.3f, -0.3f, -0.2f), new Vector3(-0.1f, -0.4f, -0.3f), new Vector3(0.0f, -0.4f, -0.4f), new Vector3(0.1f, -0.4f, -0.3f), new Vector3(0.2f, -0.4f, -0.3f), new Vector3(0.3f, -0.4f, -0.2f), new Vector3(0.3f, -0.4f, -0.2f), new Vector3(0.3f, -0.4f, -0.1f), new Vector3(0.3f, -0.3f, -0.2f), new Vector3(0.4f, -0.4f, 0.0f), new Vector3(0.3f, -0.4f, 0.1f), new Vector3(0.3f, -0.4f, 0.2f), new Vector3(0.3f, -0.4f, 0.2f), new Vector3(0.2f, -0.4f, 0.3f), new Vector3(0.3f, -0.3f, 0.2f), new Vector3(0.1f, -0.4f, 0.3f), new Vector3(0.0f, -0.4f, 0.4f), new Vector3(-0.1f, -0.4f, 0.3f), new Vector3(-0.2f, -0.4f, 0.3f), new Vector3(-0.3f, -0.4f, 0.2f), new Vector3(-0.3f, -0.4f, 0.2f), new Vector3(-0.3f, -0.4f, 0.1f), new Vector3(-0.3f, -0.3f, 0.2f), new Vector3(-0.4f, -0.4f, 0.0f), new Vector3(-0.4f, -0.3f, -0.1f), new Vector3(-0.3f, -0.4f, -0.1f), new Vector3(-0.4f, -0.2f, -0.3f), new Vector3(0.4f, -0.2f, -0.3f), new Vector3(0.4f, -0.2f, 0.3f), new Vector3(-0.4f, -0.2f, 0.3f), new Vector3(-0.4f, -0.2f, -0.1f), new Vector3(-0.4f, -0.2f, -0.3f), new Vector3(0.4f, -0.2f, -0.3f), new Vector3(0.4f, -0.2f, 0.3f), new Vector3(-0.4f, -0.2f, 0.3f), new Vector3(-0.5f, -0.2f, -0.1f), new Vector3(-0.4f, -0.1f, -0.3f), new Vector3(0.4f, -0.1f, -0.3f), new Vector3(0.4f, -0.1f, 0.3f), new Vector3(-0.4f, -0.1f, 0.3f), new Vector3(-0.5f, -0.1f, -0.2f), new Vector3(-0.4f, 0.0f, -0.3f), new Vector3(0.4f, 0.0f, -0.3f), new Vector3(0.4f, 0.0f, 0.3f), new Vector3(-0.4f, 0.0f, 0.3f), new Vector3(-0.5f, 0.0f, -0.2f), new Vector3(-0.4f, 0.1f, -0.3f), new Vector3(0.4f, 0.1f, -0.3f), new Vector3(0.4f, 0.1f, 0.3f), new Vector3(-0.4f, 0.1f, 0.3f), new Vector3(-0.5f, 0.1f, -0.2f), new Vector3(-0.4f, 0.2f, -0.3f), new Vector3(0.4f, 0.2f, -0.3f), new Vector3(0.4f, 0.2f, 0.3f), new Vector3(-0.4f, 0.2f, 0.3f), new Vector3(-0.5f, 0.2f, -0.1f), new Vector3(-0.4f, 0.2f, -0.3f), new Vector3(0.4f, 0.2f, -0.3f), new Vector3(0.4f, 0.2f, 0.3f), new Vector3(-0.4f, 0.2f, 0.3f), new Vector3(-0.4f, 0.2f, -0.1f), new Vector3(-0.3f, 0.3f, -0.2f), new Vector3(0.3f, 0.3f, -0.2f), new Vector3(0.3f, 0.3f, 0.2f), new Vector3(-0.3f, 0.3f, 0.2f), new Vector3(-0.4f, 0.3f, -0.1f), new Vector3(-0.3f, 0.4f, -0.2f), new Vector3(0.3f, 0.4f, -0.2f), new Vector3(0.3f, 0.4f, 0.2f), new Vector3(-0.3f, 0.4f, 0.2f), new Vector3(-0.3f, 0.4f, -0.1f), new Vector3(-0.3f, 0.4f, -0.1f), new Vector3(-0.3f, 0.4f, -0.2f), new Vector3(-0.2f, 0.4f, -0.3f), new Vector3(-0.1f, 0.4f, -0.3f), new Vector3(0.0f, 0.4f, -0.4f), new Vector3(0.1f, 0.4f, -0.3f), new Vector3(0.2f, 0.4f, -0.3f), new Vector3(0.3f, 0.4f, -0.2f), new Vector3(0.3f, 0.4f, -0.1f), new Vector3(0.4f, 0.4f, 0.0f), new Vector3(0.3f, 0.4f, 0.1f), new Vector3(0.3f, 0.4f, 0.2f), new Vector3(0.2f, 0.4f, 0.3f), new Vector3(0.1f, 0.4f, 0.3f), new Vector3(0.0f, 0.4f, 0.4f), new Vector3(-0.1f, 0.4f, 0.3f), new Vector3(-0.2f, 0.4f, 0.3f), new Vector3(-0.3f, 0.4f, 0.2f), new Vector3(-0.3f, 0.4f, 0.1f), new Vector3(-0.4f, 0.4f, 0.0f), new Vector3(-0.3f, 0.4f, -0.1f), new Vector3(-0.3f, 0.4f, -0.1f), new Vector3(-0.2f, 0.4f, -0.1f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(-0.1f, 0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, -0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f), new Vector3(0.0f, 0.5f, 0.0f)};

	static Vector3[] normals = {new Vector3(-0.2f, -1.0f, -0.1f), new Vector3(-0.1f, -1.0f, -0.1f), new Vector3(-0.1f, -1.0f, -0.1f), new Vector3(0.0f, -1.0f, -0.2f), new Vector3(0.0f, -1.0f, -0.2f), new Vector3(0.1f, -1.0f, -0.2f), new Vector3(0.1f, -1.0f, -0.1f), new Vector3(0.1f, -1.0f, -0.1f), new Vector3(0.2f, -1.0f, 0.0f), new Vector3(0.2f, -1.0f, 0.0f), new Vector3(0.2f, -1.0f, 0.1f), new Vector3(0.1f, -1.0f, 0.1f), new Vector3(0.1f, -1.0f, 0.1f), new Vector3(0.0f, -1.0f, 0.2f), new Vector3(0.0f, -1.0f, 0.2f), new Vector3(-0.1f, -1.0f, 0.2f), new Vector3(-0.1f, -1.0f, 0.1f), new Vector3(-0.1f, -1.0f, 0.1f), new Vector3(-0.2f, -1.0f, 0.0f), new Vector3(-0.2f, -1.0f, 0.0f), new Vector3(-0.3f, -1.0f, -0.1f), new Vector3(-0.2f, -1.0f, -0.2f), new Vector3(-0.2f, -1.0f, -0.3f), new Vector3(-0.1f, -1.0f, -0.3f), new Vector3(0.0f, -1.0f, -0.3f), new Vector3(0.1f, -1.0f, -0.3f), new Vector3(0.2f, -1.0f, -0.2f), new Vector3(0.3f, -1.0f, -0.2f), new Vector3(0.3f, -1.0f, -0.1f), new Vector3(0.3f, -1.0f, 0.0f), new Vector3(0.3f, -1.0f, 0.1f), new Vector3(0.2f, -1.0f, 0.2f), new Vector3(0.2f, -1.0f, 0.3f), new Vector3(0.1f, -1.0f, 0.3f), new Vector3(0.0f, -1.0f, 0.3f), new Vector3(-0.1f, -1.0f, 0.3f), new Vector3(-0.2f, -1.0f, 0.2f), new Vector3(-0.3f, -1.0f, 0.2f), new Vector3(-0.3f, -1.0f, 0.1f), new Vector3(-0.3f, -1.0f, 0.0f), new Vector3(-0.4f, -0.9f, -0.1f), new Vector3(-0.4f, -0.9f, -0.3f), new Vector3(-0.3f, -0.9f, -0.4f), new Vector3(-0.1f, -0.9f, -0.4f), new Vector3(0.0f, -0.9f, -0.5f), new Vector3(0.1f, -0.9f, -0.4f), new Vector3(0.3f, -0.9f, -0.4f), new Vector3(0.4f, -0.9f, -0.3f), new Vector3(0.4f, -0.9f, -0.1f), new Vector3(0.5f, -0.9f, 0.0f), new Vector3(0.4f, -0.9f, 0.1f), new Vector3(0.4f, -0.9f, 0.3f), new Vector3(0.3f, -0.9f, 0.4f), new Vector3(0.1f, -0.9f, 0.4f), new Vector3(0.0f, -0.9f, 0.5f), new Vector3(-0.1f, -0.9f, 0.4f), new Vector3(-0.3f, -0.9f, 0.4f), new Vector3(-0.4f, -0.9f, 0.3f), new Vector3(-0.4f, -0.9f, 0.1f), new Vector3(-0.5f, -0.9f, 0.0f), new Vector3(-0.6f, -0.8f, -0.2f), new Vector3(-0.5f, -0.8f, -0.3f), new Vector3(-0.3f, -0.8f, -0.5f), new Vector3(-0.2f, -0.8f, -0.6f), new Vector3(0.0f, -0.8f, -0.6f), new Vector3(0.2f, -0.8f, -0.6f), new Vector3(0.3f, -0.8f, -0.5f), new Vector3(0.5f, -0.8f, -0.3f), new Vector3(0.6f, -0.8f, -0.2f), new Vector3(0.6f, -0.8f, 0.0f), new Vector3(0.6f, -0.8f, 0.2f), new Vector3(0.5f, -0.8f, 0.3f), new Vector3(0.3f, -0.8f, 0.5f), new Vector3(0.2f, -0.8f, 0.6f), new Vector3(0.0f, -0.8f, 0.6f), new Vector3(-0.2f, -0.8f, 0.6f), new Vector3(-0.3f, -0.8f, 0.5f), new Vector3(-0.5f, -0.8f, 0.3f), new Vector3(-0.6f, -0.8f, 0.2f), new Vector3(-0.6f, -0.8f, 0.0f), new Vector3(-0.7f, -0.7f, -0.2f), new Vector3(-0.6f, -0.7f, -0.4f), new Vector3(-0.4f, -0.7f, -0.6f), new Vector3(-0.2f, -0.7f, -0.7f), new Vector3(0.0f, -0.7f, -0.7f), new Vector3(0.2f, -0.7f, -0.7f), new Vector3(0.4f, -0.7f, -0.6f), new Vector3(0.6f, -0.7f, -0.4f), new Vector3(0.7f, -0.7f, -0.2f), new Vector3(0.7f, -0.7f, 0.0f), new Vector3(0.7f, -0.7f, 0.2f), new Vector3(0.6f, -0.7f, 0.4f), new Vector3(0.4f, -0.7f, 0.6f), new Vector3(0.2f, -0.7f, 0.7f), new Vector3(0.0f, -0.7f, 0.7f), new Vector3(-0.2f, -0.7f, 0.7f), new Vector3(-0.4f, -0.7f, 0.6f), new Vector3(-0.6f, -0.7f, 0.4f), new Vector3(-0.7f, -0.7f, 0.2f), new Vector3(-0.7f, -0.7f, 0.0f), new Vector3(-0.8f, -0.6f, -0.3f), new Vector3(-0.7f, -0.6f, -0.5f), new Vector3(-0.5f, -0.6f, -0.7f), new Vector3(-0.2f, -0.6f, -0.8f), new Vector3(0.0f, -0.6f, -0.8f), new Vector3(0.3f, -0.6f, -0.8f), new Vector3(0.5f, -0.6f, -0.7f), new Vector3(0.7f, -0.6f, -0.5f), new Vector3(0.8f, -0.6f, -0.2f), new Vector3(0.8f, -0.6f, 0.0f), new Vector3(0.8f, -0.6f, 0.3f), new Vector3(0.7f, -0.6f, 0.5f), new Vector3(0.5f, -0.6f, 0.7f), new Vector3(0.2f, -0.6f, 0.8f), new Vector3(0.0f, -0.6f, 0.8f), new Vector3(-0.3f, -0.6f, 0.8f), new Vector3(-0.5f, -0.6f, 0.7f), new Vector3(-0.7f, -0.6f, 0.5f), new Vector3(-0.8f, -0.6f, 0.2f), new Vector3(-0.8f, -0.6f, 0.0f), new Vector3(-0.8f, -0.5f, -0.3f), new Vector3(-0.7f, -0.5f, -0.5f), new Vector3(-0.5f, -0.5f, -0.7f), new Vector3(-0.3f, -0.5f, -0.8f), new Vector3(0.0f, -0.5f, -0.9f), new Vector3(0.3f, -0.5f, -0.8f), new Vector3(0.5f, -0.5f, -0.7f), new Vector3(0.7f, -0.5f, -0.5f), new Vector3(0.8f, -0.5f, -0.3f), new Vector3(0.9f, -0.5f, 0.0f), new Vector3(0.8f, -0.5f, 0.3f), new Vector3(0.7f, -0.5f, 0.5f), new Vector3(0.5f, -0.5f, 0.7f), new Vector3(0.3f, -0.5f, 0.8f), new Vector3(0.0f, -0.5f, 0.9f), new Vector3(-0.3f, -0.5f, 0.8f), new Vector3(-0.5f, -0.5f, 0.7f), new Vector3(-0.7f, -0.5f, 0.5f), new Vector3(-0.8f, -0.5f, 0.3f), new Vector3(-0.9f, -0.5f, 0.0f), new Vector3(-0.9f, -0.3f, -0.3f), new Vector3(-0.8f, -0.3f, -0.6f), new Vector3(-0.6f, -0.3f, -0.8f), new Vector3(-0.3f, -0.3f, -0.9f), new Vector3(0.0f, -0.3f, -1.0f), new Vector3(0.3f, -0.3f, -0.9f), new Vector3(0.6f, -0.3f, -0.8f), new Vector3(0.8f, -0.3f, -0.6f), new Vector3(0.9f, -0.3f, -0.3f), new Vector3(1.0f, -0.3f, 0.0f), new Vector3(0.9f, -0.3f, 0.3f), new Vector3(0.8f, -0.3f, 0.6f), new Vector3(0.6f, -0.3f, 0.8f), new Vector3(0.3f, -0.3f, 0.9f), new Vector3(0.0f, -0.3f, 1.0f), new Vector3(-0.3f, -0.3f, 0.9f), new Vector3(-0.6f, -0.3f, 0.8f), new Vector3(-0.8f, -0.3f, 0.6f), new Vector3(-0.9f, -0.3f, 0.3f), new Vector3(-1.0f, -0.3f, 0.0f), new Vector3(-0.9f, -0.2f, -0.3f), new Vector3(-0.8f, -0.2f, -0.6f), new Vector3(-0.6f, -0.2f, -0.8f), new Vector3(-0.3f, -0.2f, -0.9f), new Vector3(0.0f, -0.2f, -1.0f), new Vector3(0.3f, -0.2f, -0.9f), new Vector3(0.6f, -0.2f, -0.8f), new Vector3(0.8f, -0.2f, -0.6f), new Vector3(0.9f, -0.2f, -0.3f), new Vector3(1.0f, -0.2f, 0.0f), new Vector3(0.9f, -0.2f, 0.3f), new Vector3(0.8f, -0.2f, 0.6f), new Vector3(0.6f, -0.2f, 0.8f), new Vector3(0.3f, -0.2f, 0.9f), new Vector3(0.0f, -0.2f, 1.0f), new Vector3(-0.3f, -0.2f, 0.9f), new Vector3(-0.6f, -0.2f, 0.8f), new Vector3(-0.8f, -0.2f, 0.6f), new Vector3(-0.9f, -0.2f, 0.3f), new Vector3(-1.0f, -0.2f, 0.0f), new Vector3(-1.0f, 0.0f, -0.3f), new Vector3(-0.8f, 0.0f, -0.6f), new Vector3(-0.6f, 0.0f, -0.8f), new Vector3(-0.3f, 0.0f, -1.0f), new Vector3(0.0f, 0.0f, -1.0f), new Vector3(0.3f, 0.0f, -1.0f), new Vector3(0.6f, 0.0f, -0.8f), new Vector3(0.8f, 0.0f, -0.6f), new Vector3(1.0f, 0.0f, -0.3f), new Vector3(1.0f, 0.0f, 0.0f), new Vector3(1.0f, 0.0f, 0.3f), new Vector3(0.8f, 0.0f, 0.6f), new Vector3(0.6f, 0.0f, 0.8f), new Vector3(0.3f, 0.0f, 1.0f), new Vector3(0.0f, 0.0f, 1.0f), new Vector3(-0.3f, 0.0f, 1.0f), new Vector3(-0.6f, 0.0f, 0.8f), new Vector3(-0.8f, 0.0f, 0.6f), new Vector3(-1.0f, 0.0f, 0.3f), new Vector3(-1.0f, 0.0f, 0.0f), new Vector3(-0.9f, 0.2f, -0.3f), new Vector3(-0.8f, 0.2f, -0.6f), new Vector3(-0.6f, 0.2f, -0.8f), new Vector3(-0.3f, 0.2f, -0.9f), new Vector3(0.0f, 0.2f, -1.0f), new Vector3(0.3f, 0.2f, -0.9f), new Vector3(0.6f, 0.2f, -0.8f), new Vector3(0.8f, 0.2f, -0.6f), new Vector3(0.9f, 0.2f, -0.3f), new Vector3(1.0f, 0.2f, 0.0f), new Vector3(0.9f, 0.2f, 0.3f), new Vector3(0.8f, 0.2f, 0.6f), new Vector3(0.6f, 0.2f, 0.8f), new Vector3(0.3f, 0.2f, 0.9f), new Vector3(0.0f, 0.2f, 1.0f), new Vector3(-0.3f, 0.2f, 0.9f), new Vector3(-0.6f, 0.2f, 0.8f), new Vector3(-0.8f, 0.2f, 0.6f), new Vector3(-0.9f, 0.2f, 0.3f), new Vector3(-1.0f, 0.2f, 0.0f), new Vector3(-0.9f, 0.3f, -0.3f), new Vector3(-0.8f, 0.3f, -0.6f), new Vector3(-0.6f, 0.3f, -0.8f), new Vector3(-0.3f, 0.3f, -0.9f), new Vector3(0.0f, 0.3f, -1.0f), new Vector3(0.3f, 0.3f, -0.9f), new Vector3(0.6f, 0.3f, -0.8f), new Vector3(0.8f, 0.3f, -0.6f), new Vector3(0.9f, 0.3f, -0.3f), new Vector3(1.0f, 0.3f, 0.0f), new Vector3(0.9f, 0.3f, 0.3f), new Vector3(0.8f, 0.3f, 0.6f), new Vector3(0.6f, 0.3f, 0.8f), new Vector3(0.3f, 0.3f, 0.9f), new Vector3(0.0f, 0.3f, 1.0f), new Vector3(-0.3f, 0.3f, 0.9f), new Vector3(-0.6f, 0.3f, 0.8f), new Vector3(-0.8f, 0.3f, 0.6f), new Vector3(-0.9f, 0.3f, 0.3f), new Vector3(-1.0f, 0.3f, 0.0f), new Vector3(-0.8f, 0.5f, -0.3f), new Vector3(-0.7f, 0.5f, -0.5f), new Vector3(-0.5f, 0.5f, -0.7f), new Vector3(-0.3f, 0.5f, -0.8f), new Vector3(0.0f, 0.5f, -0.9f), new Vector3(0.3f, 0.5f, -0.8f), new Vector3(0.5f, 0.5f, -0.7f), new Vector3(0.7f, 0.5f, -0.5f), new Vector3(0.8f, 0.5f, -0.3f), new Vector3(0.9f, 0.5f, 0.0f), new Vector3(0.8f, 0.5f, 0.3f), new Vector3(0.7f, 0.5f, 0.5f), new Vector3(0.5f, 0.5f, 0.7f), new Vector3(0.3f, 0.5f, 0.8f), new Vector3(0.0f, 0.5f, 0.9f), new Vector3(-0.3f, 0.5f, 0.8f), new Vector3(-0.5f, 0.5f, 0.7f), new Vector3(-0.7f, 0.5f, 0.5f), new Vector3(-0.8f, 0.5f, 0.3f), new Vector3(-0.9f, 0.5f, 0.0f), new Vector3(-0.8f, 0.6f, -0.2f), new Vector3(-0.7f, 0.6f, -0.5f), new Vector3(-0.5f, 0.6f, -0.7f), new Vector3(-0.3f, 0.6f, -0.8f), new Vector3(0.0f, 0.6f, -0.8f), new Vector3(0.2f, 0.6f, -0.8f), new Vector3(0.5f, 0.6f, -0.7f), new Vector3(0.7f, 0.6f, -0.5f), new Vector3(0.8f, 0.6f, -0.3f), new Vector3(0.8f, 0.6f, 0.0f), new Vector3(0.8f, 0.6f, 0.2f), new Vector3(0.7f, 0.6f, 0.5f), new Vector3(0.5f, 0.6f, 0.7f), new Vector3(0.3f, 0.6f, 0.8f), new Vector3(0.0f, 0.6f, 0.8f), new Vector3(-0.2f, 0.6f, 0.8f), new Vector3(-0.5f, 0.6f, 0.7f), new Vector3(-0.7f, 0.6f, 0.5f), new Vector3(-0.8f, 0.6f, 0.3f), new Vector3(-0.8f, 0.6f, 0.0f), new Vector3(-0.7f, 0.7f, -0.2f), new Vector3(-0.6f, 0.7f, -0.4f), new Vector3(-0.4f, 0.7f, -0.6f), new Vector3(-0.2f, 0.7f, -0.7f), new Vector3(0.0f, 0.7f, -0.7f), new Vector3(0.2f, 0.7f, -0.7f), new Vector3(0.4f, 0.7f, -0.6f), new Vector3(0.6f, 0.7f, -0.4f), new Vector3(0.7f, 0.7f, -0.2f), new Vector3(0.7f, 0.7f, 0.0f), new Vector3(0.7f, 0.7f, 0.2f), new Vector3(0.6f, 0.7f, 0.4f), new Vector3(0.4f, 0.7f, 0.6f), new Vector3(0.2f, 0.7f, 0.7f), new Vector3(0.0f, 0.7f, 0.7f), new Vector3(-0.2f, 0.7f, 0.7f), new Vector3(-0.4f, 0.7f, 0.6f), new Vector3(-0.6f, 0.7f, 0.4f), new Vector3(-0.7f, 0.7f, 0.2f), new Vector3(-0.7f, 0.7f, 0.0f), new Vector3(-0.6f, 0.8f, -0.2f), new Vector3(-0.5f, 0.8f, -0.3f), new Vector3(-0.3f, 0.8f, -0.5f), new Vector3(-0.2f, 0.8f, -0.6f), new Vector3(0.0f, 0.8f, -0.6f), new Vector3(0.2f, 0.8f, -0.6f), new Vector3(0.3f, 0.8f, -0.5f), new Vector3(0.5f, 0.8f, -0.3f), new Vector3(0.6f, 0.8f, -0.2f), new Vector3(0.6f, 0.8f, 0.0f), new Vector3(0.6f, 0.8f, 0.2f), new Vector3(0.5f, 0.8f, 0.3f), new Vector3(0.3f, 0.8f, 0.5f), new Vector3(0.2f, 0.8f, 0.6f), new Vector3(0.0f, 0.8f, 0.6f), new Vector3(-0.2f, 0.8f, 0.6f), new Vector3(-0.3f, 0.8f, 0.5f), new Vector3(-0.5f, 0.8f, 0.3f), new Vector3(-0.6f, 0.8f, 0.2f), new Vector3(-0.6f, 0.8f, 0.0f), new Vector3(-0.4f, 0.9f, -0.1f), new Vector3(-0.4f, 0.9f, -0.3f), new Vector3(-0.3f, 0.9f, -0.4f), new Vector3(-0.1f, 0.9f, -0.4f), new Vector3(0.0f, 0.9f, -0.5f), new Vector3(0.1f, 0.9f, -0.4f), new Vector3(0.3f, 0.9f, -0.4f), new Vector3(0.4f, 0.9f, -0.3f), new Vector3(0.4f, 0.9f, -0.1f), new Vector3(0.5f, 0.9f, 0.0f), new Vector3(0.4f, 0.9f, 0.1f), new Vector3(0.4f, 0.9f, 0.3f), new Vector3(0.3f, 0.9f, 0.4f), new Vector3(0.1f, 0.9f, 0.4f), new Vector3(0.0f, 0.9f, 0.5f), new Vector3(-0.1f, 0.9f, 0.4f), new Vector3(-0.3f, 0.9f, 0.4f), new Vector3(-0.4f, 0.9f, 0.3f), new Vector3(-0.4f, 0.9f, 0.1f), new Vector3(-0.5f, 0.9f, 0.0f), new Vector3(-0.3f, 1.0f, -0.1f), new Vector3(-0.3f, 1.0f, -0.2f), new Vector3(-0.2f, 1.0f, -0.2f), new Vector3(-0.1f, 1.0f, -0.3f), new Vector3(0.0f, 1.0f, -0.3f), new Vector3(0.1f, 1.0f, -0.3f), new Vector3(0.2f, 1.0f, -0.3f), new Vector3(0.2f, 1.0f, -0.2f), new Vector3(0.3f, 1.0f, -0.1f), new Vector3(0.3f, 1.0f, 0.0f), new Vector3(0.3f, 1.0f, 0.1f), new Vector3(0.3f, 1.0f, 0.2f), new Vector3(0.2f, 1.0f, 0.2f), new Vector3(0.1f, 1.0f, 0.3f), new Vector3(0.0f, 1.0f, 0.3f), new Vector3(-0.1f, 1.0f, 0.3f), new Vector3(-0.2f, 1.0f, 0.3f), new Vector3(-0.2f, 1.0f, 0.2f), new Vector3(-0.3f, 1.0f, 0.1f), new Vector3(-0.3f, 1.0f, 0.0f), new Vector3(-0.2f, 1.0f, 0.0f), new Vector3(-0.1f, 1.0f, -0.1f), new Vector3(-0.1f, 1.0f, -0.1f), new Vector3(-0.1f, 1.0f, -0.2f), new Vector3(0.0f, 1.0f, -0.2f), new Vector3(0.0f, 1.0f, -0.2f), new Vector3(0.1f, 1.0f, -0.1f), new Vector3(0.1f, 1.0f, -0.1f), new Vector3(0.2f, 1.0f, -0.1f), new Vector3(0.2f, 1.0f, 0.0f), new Vector3(0.2f, 1.0f, 0.0f), new Vector3(0.1f, 1.0f, 0.1f), new Vector3(0.1f, 1.0f, 0.1f), new Vector3(0.1f, 1.0f, 0.2f), new Vector3(0.0f, 1.0f, 0.2f), new Vector3(0.0f, 1.0f, 0.2f), new Vector3(-0.1f, 1.0f, 0.1f), new Vector3(-0.1f, 1.0f, 0.1f), new Vector3(-0.2f, 1.0f, 0.1f), new Vector3(-0.2f, 1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(-0.3f, -1.0f, -0.1f), new Vector3(-0.2f, -1.0f, -0.1f), new Vector3(-0.4f, -0.9f, -0.1f), new Vector3(-0.6f, -0.8f, -0.2f), new Vector3(-0.7f, -0.7f, -0.2f), new Vector3(-0.7f, -0.7f, -0.2f), new Vector3(-0.6f, -0.7f, -0.4f), new Vector3(-0.6f, -0.7f, -0.4f), new Vector3(-0.4f, -0.7f, -0.6f), new Vector3(-0.7f, -0.6f, -0.5f), new Vector3(-0.2f, -0.7f, -0.7f), new Vector3(0.0f, -0.7f, -0.7f), new Vector3(0.2f, -0.7f, -0.7f), new Vector3(0.4f, -0.7f, -0.6f), new Vector3(0.6f, -0.7f, -0.4f), new Vector3(0.6f, -0.7f, -0.4f), new Vector3(0.7f, -0.7f, -0.2f), new Vector3(0.7f, -0.6f, -0.5f), new Vector3(0.7f, -0.7f, 0.0f), new Vector3(0.7f, -0.7f, 0.2f), new Vector3(0.6f, -0.7f, 0.4f), new Vector3(0.6f, -0.7f, 0.4f), new Vector3(0.4f, -0.7f, 0.6f), new Vector3(0.7f, -0.6f, 0.5f), new Vector3(0.2f, -0.7f, 0.7f), new Vector3(0.0f, -0.7f, 0.7f), new Vector3(-0.2f, -0.7f, 0.7f), new Vector3(-0.4f, -0.7f, 0.6f), new Vector3(-0.6f, -0.7f, 0.4f), new Vector3(-0.6f, -0.7f, 0.4f), new Vector3(-0.7f, -0.7f, 0.2f), new Vector3(-0.7f, -0.6f, 0.5f), new Vector3(-0.7f, -0.7f, 0.0f), new Vector3(-0.8f, -0.6f, -0.3f), new Vector3(-0.7f, -0.7f, -0.2f), new Vector3(-0.7f, -0.5f, -0.5f), new Vector3(0.7f, -0.5f, -0.5f), new Vector3(0.7f, -0.5f, 0.5f), new Vector3(-0.7f, -0.5f, 0.5f), new Vector3(-0.8f, -0.5f, -0.3f), new Vector3(-0.8f, -0.3f, -0.6f), new Vector3(0.8f, -0.3f, -0.6f), new Vector3(0.8f, -0.3f, 0.6f), new Vector3(-0.8f, -0.3f, 0.6f), new Vector3(-0.9f, -0.3f, -0.3f), new Vector3(-0.8f, -0.2f, -0.6f), new Vector3(0.8f, -0.2f, -0.6f), new Vector3(0.8f, -0.2f, 0.6f), new Vector3(-0.8f, -0.2f, 0.6f), new Vector3(-0.9f, -0.2f, -0.3f), new Vector3(-0.8f, 0.0f, -0.6f), new Vector3(0.8f, 0.0f, -0.6f), new Vector3(0.8f, 0.0f, 0.6f), new Vector3(-0.8f, 0.0f, 0.6f), new Vector3(-1.0f, 0.0f, -0.3f), new Vector3(-0.8f, 0.2f, -0.6f), new Vector3(0.8f, 0.2f, -0.6f), new Vector3(0.8f, 0.2f, 0.6f), new Vector3(-0.8f, 0.2f, 0.6f), new Vector3(-0.9f, 0.2f, -0.3f), new Vector3(-0.8f, 0.3f, -0.6f), new Vector3(0.8f, 0.3f, -0.6f), new Vector3(0.8f, 0.3f, 0.6f), new Vector3(-0.8f, 0.3f, 0.6f), new Vector3(-0.9f, 0.3f, -0.3f), new Vector3(-0.7f, 0.5f, -0.5f), new Vector3(0.7f, 0.5f, -0.5f), new Vector3(0.7f, 0.5f, 0.5f), new Vector3(-0.7f, 0.5f, 0.5f), new Vector3(-0.8f, 0.5f, -0.3f), new Vector3(-0.7f, 0.6f, -0.5f), new Vector3(0.7f, 0.6f, -0.5f), new Vector3(0.7f, 0.6f, 0.5f), new Vector3(-0.7f, 0.6f, 0.5f), new Vector3(-0.8f, 0.6f, -0.2f), new Vector3(-0.6f, 0.7f, -0.4f), new Vector3(0.6f, 0.7f, -0.4f), new Vector3(0.6f, 0.7f, 0.4f), new Vector3(-0.6f, 0.7f, 0.4f), new Vector3(-0.7f, 0.7f, -0.2f), new Vector3(-0.7f, 0.7f, -0.2f), new Vector3(-0.6f, 0.7f, -0.4f), new Vector3(-0.4f, 0.7f, -0.6f), new Vector3(-0.2f, 0.7f, -0.7f), new Vector3(0.0f, 0.7f, -0.7f), new Vector3(0.2f, 0.7f, -0.7f), new Vector3(0.4f, 0.7f, -0.6f), new Vector3(0.6f, 0.7f, -0.4f), new Vector3(0.7f, 0.7f, -0.2f), new Vector3(0.7f, 0.7f, 0.0f), new Vector3(0.7f, 0.7f, 0.2f), new Vector3(0.6f, 0.7f, 0.4f), new Vector3(0.4f, 0.7f, 0.6f), new Vector3(0.2f, 0.7f, 0.7f), new Vector3(0.0f, 0.7f, 0.7f), new Vector3(-0.2f, 0.7f, 0.7f), new Vector3(-0.4f, 0.7f, 0.6f), new Vector3(-0.6f, 0.7f, 0.4f), new Vector3(-0.7f, 0.7f, 0.2f), new Vector3(-0.7f, 0.7f, 0.0f), new Vector3(-0.6f, 0.8f, -0.2f), new Vector3(-0.7f, 0.7f, -0.2f), new Vector3(-0.4f, 0.9f, -0.1f), new Vector3(-0.3f, 1.0f, -0.1f), new Vector3(-0.2f, 1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, -1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f)};

	static Vector2[] uvs = {new Vector2(0.0f, 0.1f), new Vector2(0.1f, 0.1f), new Vector2(0.1f, 0.1f), new Vector2(0.2f, 0.1f), new Vector2(0.2f, 0.1f), new Vector2(0.3f, 0.1f), new Vector2(0.3f, 0.1f), new Vector2(0.4f, 0.1f), new Vector2(0.4f, 0.1f), new Vector2(0.5f, 0.1f), new Vector2(0.5f, 0.1f), new Vector2(0.6f, 0.1f), new Vector2(0.6f, 0.1f), new Vector2(0.7f, 0.1f), new Vector2(0.7f, 0.1f), new Vector2(0.8f, 0.1f), new Vector2(0.8f, 0.1f), new Vector2(0.9f, 0.1f), new Vector2(0.9f, 0.1f), new Vector2(1.0f, 0.1f), new Vector2(0.0f, 0.1f), new Vector2(0.1f, 0.1f), new Vector2(0.1f, 0.1f), new Vector2(0.2f, 0.1f), new Vector2(0.2f, 0.1f), new Vector2(0.3f, 0.1f), new Vector2(0.3f, 0.1f), new Vector2(0.4f, 0.1f), new Vector2(0.4f, 0.1f), new Vector2(0.5f, 0.1f), new Vector2(0.5f, 0.1f), new Vector2(0.6f, 0.1f), new Vector2(0.6f, 0.1f), new Vector2(0.7f, 0.1f), new Vector2(0.7f, 0.1f), new Vector2(0.8f, 0.1f), new Vector2(0.8f, 0.1f), new Vector2(0.9f, 0.1f), new Vector2(0.9f, 0.1f), new Vector2(1.0f, 0.1f), new Vector2(0.0f, 0.2f), new Vector2(0.1f, 0.2f), new Vector2(0.1f, 0.2f), new Vector2(0.2f, 0.2f), new Vector2(0.2f, 0.2f), new Vector2(0.3f, 0.2f), new Vector2(0.3f, 0.2f), new Vector2(0.4f, 0.2f), new Vector2(0.4f, 0.2f), new Vector2(0.5f, 0.2f), new Vector2(0.5f, 0.2f), new Vector2(0.6f, 0.2f), new Vector2(0.6f, 0.2f), new Vector2(0.7f, 0.2f), new Vector2(0.7f, 0.2f), new Vector2(0.8f, 0.2f), new Vector2(0.8f, 0.2f), new Vector2(0.9f, 0.2f), new Vector2(0.9f, 0.2f), new Vector2(1.0f, 0.2f), new Vector2(0.0f, 0.2f), new Vector2(0.1f, 0.2f), new Vector2(0.1f, 0.2f), new Vector2(0.2f, 0.2f), new Vector2(0.2f, 0.2f), new Vector2(0.3f, 0.2f), new Vector2(0.3f, 0.2f), new Vector2(0.4f, 0.2f), new Vector2(0.4f, 0.2f), new Vector2(0.5f, 0.2f), new Vector2(0.5f, 0.2f), new Vector2(0.6f, 0.2f), new Vector2(0.6f, 0.2f), new Vector2(0.7f, 0.2f), new Vector2(0.7f, 0.2f), new Vector2(0.8f, 0.2f), new Vector2(0.8f, 0.2f), new Vector2(0.9f, 0.2f), new Vector2(0.9f, 0.2f), new Vector2(1.0f, 0.2f), new Vector2(0.0f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(1.0f, 0.3f), new Vector2(0.0f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(1.0f, 0.3f), new Vector2(0.0f, 0.4f), new Vector2(0.1f, 0.4f), new Vector2(0.1f, 0.4f), new Vector2(0.2f, 0.4f), new Vector2(0.2f, 0.4f), new Vector2(0.3f, 0.4f), new Vector2(0.3f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.5f, 0.4f), new Vector2(0.5f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.7f, 0.4f), new Vector2(0.7f, 0.4f), new Vector2(0.8f, 0.4f), new Vector2(0.8f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(1.0f, 0.4f), new Vector2(0.0f, 0.4f), new Vector2(0.1f, 0.4f), new Vector2(0.1f, 0.4f), new Vector2(0.2f, 0.4f), new Vector2(0.2f, 0.4f), new Vector2(0.3f, 0.4f), new Vector2(0.3f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.5f, 0.4f), new Vector2(0.5f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.7f, 0.4f), new Vector2(0.7f, 0.4f), new Vector2(0.8f, 0.4f), new Vector2(0.8f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(1.0f, 0.4f), new Vector2(0.0f, 0.5f), new Vector2(0.1f, 0.5f), new Vector2(0.1f, 0.5f), new Vector2(0.2f, 0.5f), new Vector2(0.2f, 0.5f), new Vector2(0.3f, 0.5f), new Vector2(0.3f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.7f, 0.5f), new Vector2(0.7f, 0.5f), new Vector2(0.8f, 0.5f), new Vector2(0.8f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(1.0f, 0.5f), new Vector2(0.0f, 0.5f), new Vector2(0.1f, 0.5f), new Vector2(0.1f, 0.5f), new Vector2(0.2f, 0.5f), new Vector2(0.2f, 0.5f), new Vector2(0.3f, 0.5f), new Vector2(0.3f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.7f, 0.5f), new Vector2(0.7f, 0.5f), new Vector2(0.8f, 0.5f), new Vector2(0.8f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(1.0f, 0.5f), new Vector2(0.0f, 0.6f), new Vector2(0.1f, 0.6f), new Vector2(0.1f, 0.6f), new Vector2(0.2f, 0.6f), new Vector2(0.2f, 0.6f), new Vector2(0.3f, 0.6f), new Vector2(0.3f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.5f, 0.6f), new Vector2(0.5f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.7f, 0.6f), new Vector2(0.7f, 0.6f), new Vector2(0.8f, 0.6f), new Vector2(0.8f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(1.0f, 0.6f), new Vector2(0.0f, 0.6f), new Vector2(0.1f, 0.6f), new Vector2(0.1f, 0.6f), new Vector2(0.2f, 0.6f), new Vector2(0.2f, 0.6f), new Vector2(0.3f, 0.6f), new Vector2(0.3f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.5f, 0.6f), new Vector2(0.5f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.7f, 0.6f), new Vector2(0.7f, 0.6f), new Vector2(0.8f, 0.6f), new Vector2(0.8f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(1.0f, 0.6f), new Vector2(0.0f, 0.7f), new Vector2(0.1f, 0.7f), new Vector2(0.1f, 0.7f), new Vector2(0.2f, 0.7f), new Vector2(0.2f, 0.7f), new Vector2(0.3f, 0.7f), new Vector2(0.3f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.5f, 0.7f), new Vector2(0.5f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.7f, 0.7f), new Vector2(0.7f, 0.7f), new Vector2(0.8f, 0.7f), new Vector2(0.8f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(1.0f, 0.7f), new Vector2(0.0f, 0.7f), new Vector2(0.1f, 0.7f), new Vector2(0.1f, 0.7f), new Vector2(0.2f, 0.7f), new Vector2(0.2f, 0.7f), new Vector2(0.3f, 0.7f), new Vector2(0.3f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.5f, 0.7f), new Vector2(0.5f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.7f, 0.7f), new Vector2(0.7f, 0.7f), new Vector2(0.8f, 0.7f), new Vector2(0.8f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(1.0f, 0.7f), new Vector2(0.0f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(0.0f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(0.0f, 0.9f), new Vector2(0.1f, 0.9f), new Vector2(0.1f, 0.9f), new Vector2(0.2f, 0.9f), new Vector2(0.2f, 0.9f), new Vector2(0.3f, 0.9f), new Vector2(0.3f, 0.9f), new Vector2(0.4f, 0.9f), new Vector2(0.4f, 0.9f), new Vector2(0.5f, 0.9f), new Vector2(0.5f, 0.9f), new Vector2(0.6f, 0.9f), new Vector2(0.6f, 0.9f), new Vector2(0.7f, 0.9f), new Vector2(0.7f, 0.9f), new Vector2(0.8f, 0.9f), new Vector2(0.8f, 0.9f), new Vector2(0.9f, 0.9f), new Vector2(0.9f, 0.9f), new Vector2(1.0f, 0.9f), new Vector2(0.0f, 0.9f), new Vector2(0.1f, 0.9f), new Vector2(0.1f, 0.9f), new Vector2(0.2f, 0.9f), new Vector2(0.2f, 0.9f), new Vector2(0.3f, 0.9f), new Vector2(0.3f, 0.9f), new Vector2(0.4f, 0.9f), new Vector2(0.4f, 0.9f), new Vector2(0.5f, 0.9f), new Vector2(0.5f, 0.9f), new Vector2(0.6f, 0.9f), new Vector2(0.6f, 0.9f), new Vector2(0.7f, 0.9f), new Vector2(0.7f, 0.9f), new Vector2(0.8f, 0.9f), new Vector2(0.8f, 0.9f), new Vector2(0.9f, 0.9f), new Vector2(0.9f, 0.9f), new Vector2(1.0f, 0.9f), new Vector2(0.0f, 1.0f), new Vector2(0.1f, 1.0f), new Vector2(0.1f, 1.0f), new Vector2(0.2f, 1.0f), new Vector2(0.2f, 1.0f), new Vector2(0.3f, 1.0f), new Vector2(0.3f, 1.0f), new Vector2(0.4f, 1.0f), new Vector2(0.4f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.6f, 1.0f), new Vector2(0.6f, 1.0f), new Vector2(0.7f, 1.0f), new Vector2(0.7f, 1.0f), new Vector2(0.8f, 1.0f), new Vector2(0.8f, 1.0f), new Vector2(0.9f, 1.0f), new Vector2(0.9f, 1.0f), new Vector2(1.0f, 1.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 1.0f), new Vector2(1.0f, 0.1f), new Vector2(1.0f, 0.1f), new Vector2(1.0f, 0.2f), new Vector2(1.0f, 0.2f), new Vector2(1.0f, 0.3f), new Vector2(0.0f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(1.0f, 0.3f), new Vector2(1.0f, 0.3f), new Vector2(1.0f, 0.3f), new Vector2(0.1f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(1.0f, 0.4f), new Vector2(0.1f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(1.0f, 0.4f), new Vector2(0.1f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(1.0f, 0.5f), new Vector2(0.1f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(1.0f, 0.5f), new Vector2(0.1f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(1.0f, 0.6f), new Vector2(0.1f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(1.0f, 0.6f), new Vector2(0.1f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(1.0f, 0.7f), new Vector2(0.1f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(1.0f, 0.7f), new Vector2(0.1f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(0.0f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(1.0f, 0.9f), new Vector2(1.0f, 0.9f), new Vector2(1.0f, 1.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.5f, 1.0f)};

	static int[] triangles = {0, 21, 1, 0, 20, 21, 1, 21, 22, 1, 22, 2, 2, 22, 23, 2, 23, 3, 3, 23, 24, 3, 24, 4, 4, 24, 25, 4, 25, 5, 5, 25, 26, 5, 26, 6, 6, 26, 27, 6, 27, 7, 7, 27, 28, 7, 28, 8, 8, 28, 29, 8, 29, 9, 9, 29, 30, 9, 30, 10, 10, 30, 31, 10, 31, 11, 11, 31, 32, 11, 32, 12, 12, 32, 33, 12, 33, 13, 13, 33, 34, 13, 34, 14, 14, 34, 35, 14, 35, 15, 15, 35, 36, 15, 36, 16, 16, 36, 37, 16, 37, 17, 17, 37, 38, 17, 38, 18, 18, 38, 39, 18, 39, 19, 19, 39, 382, 19, 382, 383, 33, 54, 34, 34, 55, 35, 34, 54, 55, 35, 56, 36, 35, 55, 56, 36, 57, 37, 36, 56, 57, 37, 58, 38, 37, 57, 58, 38, 59, 39, 38, 58, 59, 39, 384, 382, 39, 59, 384, 54, 75, 55, 54, 74, 75, 53, 74, 54, 33, 53, 54, 32, 53, 33, 32, 52, 53, 31, 52, 32, 31, 51, 52, 30, 51, 31, 30, 50, 51, 29, 50, 30, 29, 49, 50, 28, 49, 29, 28, 48, 49, 27, 48, 28, 27, 47, 48, 26, 47, 27, 26, 46, 47, 25, 46, 26, 25, 45, 46, 24, 45, 25, 24, 44, 45, 23, 44, 24, 23, 43, 44, 22, 43, 23, 22, 42, 43, 21, 42, 22, 21, 41, 42, 20, 41, 21, 20, 40, 41, 40, 61, 41, 40, 60, 61, 41, 62, 42, 41, 61, 62, 42, 63, 43, 42, 62, 63, 43, 64, 44, 43, 63, 64, 44, 65, 45, 44, 64, 65, 45, 65, 66, 45, 66, 46, 46, 66, 67, 46, 67, 47, 47, 67, 68, 47, 68, 48, 48, 68, 69, 48, 69, 49, 49, 69, 70, 49, 70, 50, 50, 70, 71, 50, 71, 51, 51, 71, 72, 51, 72, 52, 52, 72, 73, 52, 73, 53, 53, 73, 74, 67, 88, 68, 67, 87, 88, 68, 89, 69, 68, 88, 89, 69, 90, 70, 69, 89, 90, 70, 91, 71, 70, 90, 91, 71, 92, 72, 71, 91, 92, 72, 93, 73, 72, 92, 93, 73, 94, 74, 73, 93, 94, 74, 94, 95, 74, 95, 75, 75, 95, 96, 75, 96, 76, 55, 75, 76, 55, 76, 56, 56, 76, 77, 56, 77, 57, 57, 77, 78, 57, 78, 58, 58, 78, 79, 58, 79, 59, 59, 79, 385, 59, 385, 384, 76, 97, 77, 76, 96, 97, 77, 98, 78, 77, 97, 98, 78, 99, 79, 78, 98, 99, 79, 386, 385, 79, 99, 386, 60, 81, 61, 60, 80, 81, 61, 81, 82, 61, 82, 62, 62, 82, 83, 62, 83, 63, 63, 83, 84, 63, 84, 64, 64, 84, 85, 64, 85, 65, 65, 85, 86, 65, 86, 66, 66, 86, 87, 66, 87, 67, 387, 101, 388, 387, 100, 101, 100, 121, 101, 100, 120, 121, 120, 141, 121, 120, 140, 141, 140, 161, 141, 140, 160, 161, 160, 181, 161, 160, 180, 181, 180, 201, 181, 180, 200, 201, 200, 221, 201, 200, 220, 221, 220, 241, 221, 220, 240, 241, 240, 261, 241, 240, 260, 261, 260, 281, 261, 260, 280, 281, 389, 102, 390, 389, 391, 102, 390, 102, 103, 390, 103, 392, 392, 103, 104, 392, 104, 393, 393, 104, 105, 393, 105, 394, 394, 105, 106, 394, 106, 395, 395, 106, 107, 395, 107, 396, 391, 122, 102, 391, 417, 122, 102, 123, 103, 102, 122, 123, 103, 124, 104, 103, 123, 124, 104, 125, 105, 104, 124, 125, 105, 126, 106, 105, 125, 126, 106, 127, 107, 106, 126, 127, 417, 142, 122, 417, 422, 142, 122, 143, 123, 122, 142, 143, 123, 144, 124, 123, 143, 144, 124, 145, 125, 124, 144, 145, 125, 146, 126, 125, 145, 146, 126, 147, 127, 126, 146, 147, 422, 162, 142, 422, 427, 162, 142, 163, 143, 142, 162, 163, 143, 164, 144, 143, 163, 164, 144, 165, 145, 144, 164, 165, 145, 166, 146, 145, 165, 166, 146, 167, 147, 146, 166, 167, 427, 182, 162, 427, 432, 182, 162, 183, 163, 162, 182, 183, 163, 184, 164, 163, 183, 184, 164, 185, 165, 164, 184, 185, 165, 186, 166, 165, 185, 186, 166, 187, 167, 166, 186, 187, 432, 202, 182, 432, 437, 202, 182, 203, 183, 182, 202, 203, 183, 204, 184, 183, 203, 204, 184, 205, 185, 184, 204, 205, 185, 206, 186, 185, 205, 206, 186, 207, 187, 186, 206, 207, 437, 222, 202, 437, 442, 222, 202, 223, 203, 202, 222, 223, 203, 224, 204, 203, 223, 224, 204, 225, 205, 204, 224, 225, 205, 226, 206, 205, 225, 226, 206, 227, 207, 206, 226, 227, 442, 242, 222, 442, 447, 242, 222, 243, 223, 222, 242, 243, 223, 244, 224, 223, 243, 244, 224, 245, 225, 224, 244, 245, 225, 246, 226, 225, 245, 246, 226, 247, 227, 226, 246, 247, 447, 262, 242, 447, 452, 262, 242, 263, 243, 242, 262, 263, 243, 264, 244, 243, 263, 264, 244, 265, 245, 244, 264, 265, 245, 266, 246, 245, 265, 266, 246, 267, 247, 246, 266, 267, 452, 282, 262, 452, 457, 282, 262, 283, 263, 262, 282, 283, 263, 284, 264, 263, 283, 284, 264, 285, 265, 264, 284, 285, 265, 286, 266, 265, 285, 286, 266, 287, 267, 266, 286, 287, 397, 108, 398, 397, 399, 108, 398, 108, 109, 398, 109, 400, 400, 109, 110, 400, 110, 401, 401, 110, 111, 401, 111, 402, 399, 128, 108, 399, 418, 128, 108, 129, 109, 108, 128, 129, 109, 130, 110, 109, 129, 130, 110, 131, 111, 110, 130, 131, 418, 148, 128, 418, 423, 148, 128, 149, 129, 128, 148, 149, 129, 150, 130, 129, 149, 150, 130, 151, 131, 130, 150, 151, 423, 168, 148, 423, 428, 168, 148, 169, 149, 148, 168, 169, 149, 170, 150, 149, 169, 170, 150, 171, 151, 150, 170, 171, 428, 188, 168, 428, 433, 188, 168, 189, 169, 168, 188, 189, 169, 190, 170, 169, 189, 190, 170, 191, 171, 170, 190, 191, 433, 208, 188, 433, 438, 208, 188, 209, 189, 188, 208, 209, 189, 210, 190, 189, 209, 210, 190, 211, 191, 190, 210, 211, 438, 228, 208, 438, 443, 228, 208, 229, 209, 208, 228, 229, 209, 230, 210, 209, 229, 230, 210, 231, 211, 210, 230, 231, 443, 248, 228, 443, 448, 248, 228, 249, 229, 228, 248, 249, 229, 250, 230, 229, 249, 250, 230, 251, 231, 230, 250, 251, 448, 268, 248, 448, 453, 268, 248, 269, 249, 248, 268, 269, 249, 270, 250, 249, 269, 270, 250, 271, 251, 250, 270, 271, 453, 288, 268, 453, 458, 288, 268, 289, 269, 268, 288, 289, 269, 290, 270, 269, 289, 290, 270, 291, 271, 270, 290, 291, 403, 112, 404, 403, 405, 112, 404, 112, 113, 404, 113, 406, 406, 113, 114, 406, 114, 407, 407, 114, 115, 407, 115, 408, 408, 115, 116, 408, 116, 409, 409, 116, 117, 409, 117, 410, 405, 132, 112, 405, 419, 132, 112, 133, 113, 112, 132, 133, 113, 134, 114, 113, 133, 134, 114, 135, 115, 114, 134, 135, 115, 136, 116, 115, 135, 136, 116, 137, 117, 116, 136, 137, 419, 152, 132, 419, 424, 152, 132, 153, 133, 132, 152, 153, 133, 154, 134, 133, 153, 154, 134, 155, 135, 134, 154, 155, 135, 156, 136, 135, 155, 156, 136, 157, 137, 136, 156, 157, 424, 172, 152, 424, 429, 172, 152, 173, 153, 152, 172, 173, 153, 174, 154, 153, 173, 174, 154, 175, 155, 154, 174, 175, 155, 176, 156, 155, 175, 176, 156, 177, 157, 156, 176, 177, 429, 192, 172, 429, 434, 192, 172, 193, 173, 172, 192, 193, 173, 194, 174, 173, 193, 194, 174, 195, 175, 174, 194, 195, 175, 196, 176, 175, 195, 196, 176, 197, 177, 176, 196, 197, 434, 212, 192, 434, 439, 212, 192, 213, 193, 192, 212, 213, 193, 214, 194, 193, 213, 214, 194, 215, 195, 194, 214, 215, 195, 216, 196, 195, 215, 216, 196, 217, 197, 196, 216, 217, 439, 232, 212, 439, 444, 232, 212, 233, 213, 212, 232, 233, 213, 234, 214, 213, 233, 234, 214, 235, 215, 214, 234, 235, 215, 236, 216, 215, 235, 236, 216, 237, 217, 216, 236, 237, 444, 252, 232, 444, 449, 252, 232, 253, 233, 232, 252, 253, 233, 254, 234, 233, 253, 254, 234, 255, 235, 234, 254, 255, 235, 256, 236, 235, 255, 256, 236, 257, 237, 236, 256, 257, 449, 272, 252, 449, 454, 272, 252, 273, 253, 252, 272, 273, 253, 274, 254, 253, 273, 274, 254, 275, 255, 254, 274, 275, 255, 276, 256, 255, 275, 276, 256, 277, 257, 256, 276, 277, 454, 292, 272, 454, 459, 292, 272, 293, 273, 272, 292, 293, 273, 294, 274, 273, 293, 294, 274, 295, 275, 274, 294, 295, 275, 296, 276, 275, 295, 296, 276, 297, 277, 276, 296, 297, 411, 118, 412, 411, 413, 118, 412, 118, 119, 412, 119, 414, 414, 119, 415, 414, 415, 416, 413, 138, 118, 413, 420, 138, 118, 139, 119, 118, 138, 139, 119, 421, 415, 119, 139, 421, 420, 158, 138, 420, 425, 158, 138, 159, 139, 138, 158, 159, 139, 426, 421, 139, 159, 426, 425, 178, 158, 425, 430, 178, 158, 179, 159, 158, 178, 179, 159, 431, 426, 159, 179, 431, 430, 198, 178, 430, 435, 198, 178, 199, 179, 178, 198, 199, 179, 436, 431, 179, 199, 436, 435, 218, 198, 435, 440, 218, 198, 219, 199, 198, 218, 219, 199, 441, 436, 199, 219, 441, 440, 238, 218, 440, 445, 238, 218, 239, 219, 218, 238, 239, 219, 446, 441, 219, 239, 446, 445, 258, 238, 445, 450, 258, 238, 259, 239, 238, 258, 259, 239, 451, 446, 239, 259, 451, 450, 278, 258, 450, 455, 278, 258, 279, 259, 258, 278, 279, 259, 456, 451, 259, 279, 456, 455, 298, 278, 455, 460, 298, 278, 299, 279, 278, 298, 299, 279, 461, 456, 279, 299, 461, 462, 301, 463, 462, 300, 301, 463, 301, 302, 463, 302, 464, 464, 302, 303, 464, 303, 465, 465, 303, 304, 465, 304, 466, 466, 304, 305, 466, 305, 467, 467, 305, 306, 467, 306, 468, 468, 306, 307, 468, 307, 469, 469, 307, 308, 469, 308, 470, 470, 308, 309, 470, 309, 471, 471, 309, 310, 471, 310, 472, 472, 310, 311, 472, 311, 473, 473, 311, 312, 473, 312, 474, 474, 312, 313, 474, 313, 475, 475, 313, 314, 475, 314, 476, 476, 314, 315, 476, 315, 477, 477, 315, 316, 477, 316, 478, 478, 316, 317, 478, 317, 479, 479, 317, 318, 479, 318, 480, 480, 318, 319, 480, 319, 481, 481, 319, 482, 481, 482, 483, 313, 334, 314, 314, 335, 315, 314, 334, 335, 315, 336, 316, 315, 335, 336, 316, 337, 317, 316, 336, 337, 317, 338, 318, 317, 337, 338, 318, 339, 319, 318, 338, 339, 319, 484, 482, 319, 339, 484, 334, 355, 335, 334, 354, 355, 333, 354, 334, 313, 333, 334, 312, 333, 313, 312, 332, 333, 311, 332, 312, 311, 331, 332, 310, 331, 311, 310, 330, 331, 309, 330, 310, 309, 329, 330, 308, 329, 309, 308, 328, 329, 307, 328, 308, 307, 327, 328, 306, 327, 307, 306, 326, 327, 305, 326, 306, 305, 325, 326, 304, 325, 305, 304, 324, 325, 303, 324, 304, 303, 323, 324, 302, 323, 303, 302, 322, 323, 301, 322, 302, 301, 321, 322, 300, 321, 301, 300, 320, 321, 320, 341, 321, 320, 340, 341, 321, 342, 322, 321, 341, 342, 322, 343, 323, 322, 342, 343, 323, 344, 324, 323, 343, 344, 324, 345, 325, 324, 344, 345, 325, 345, 346, 325, 346, 326, 326, 346, 347, 326, 347, 327, 327, 347, 348, 327, 348, 328, 328, 348, 349, 328, 349, 329, 329, 349, 350, 329, 350, 330, 330, 350, 351, 330, 351, 331, 331, 351, 352, 331, 352, 332, 332, 352, 353, 332, 353, 333, 333, 353, 354, 347, 368, 348, 347, 367, 368, 348, 369, 349, 348, 368, 369, 349, 370, 350, 349, 369, 370, 350, 371, 351, 350, 370, 371, 351, 372, 352, 351, 371, 372, 352, 373, 353, 352, 372, 373, 353, 374, 354, 353, 373, 374, 354, 374, 375, 354, 375, 355, 355, 375, 376, 355, 376, 356, 335, 355, 356, 335, 356, 336, 336, 356, 357, 336, 357, 337, 337, 357, 358, 337, 358, 338, 338, 358, 359, 338, 359, 339, 339, 359, 485, 339, 485, 484, 356, 377, 357, 356, 376, 377, 357, 378, 358, 357, 377, 378, 358, 379, 359, 358, 378, 379, 359, 486, 485, 359, 379, 486, 376, 521, 377, 377, 522, 378, 378, 523, 379, 379, 524, 486, 340, 361, 341, 340, 360, 361, 341, 361, 362, 341, 362, 342, 342, 362, 363, 342, 363, 343, 343, 363, 364, 343, 364, 344, 344, 364, 365, 344, 365, 345, 345, 365, 366, 345, 366, 346, 346, 366, 367, 346, 367, 347, 360, 381, 361, 361, 506, 362, 362, 507, 363, 363, 508, 364, 364, 509, 365, 365, 510, 366, 366, 511, 367, 367, 512, 368, 368, 513, 369, 369, 514, 370, 370, 515, 371, 371, 516, 372, 372, 517, 373, 373, 518, 374, 374, 519, 375, 375, 520, 376, 1, 380, 0, 2, 487, 1, 3, 488, 2, 4, 489, 3, 5, 490, 4, 6, 491, 5, 7, 492, 6, 8, 493, 7, 9, 494, 8, 10, 495, 9, 11, 496, 10, 12, 497, 11, 13, 498, 12, 14, 499, 13, 15, 500, 14, 16, 501, 15, 17, 502, 16, 18, 503, 17, 19, 504, 18, 383, 505, 19};

    public MeshFilter MF; 

	void Start(){
        MF = gameObject.GetComponent<MeshFilter>();
	}

    public static void ResetSphere(Mesh sphere)
    {
        sphere.vertices = rebuild_sphere.vertices;
        sphere.normals = rebuild_sphere.normals;
        sphere.uv = rebuild_sphere.uvs;
        sphere.triangles = rebuild_sphere.triangles;
    }
}

editor/rebuild_sphereEditor.cs

using UnityEngine;
using UnityEditor;
using System.Collections;

[CustomEditor (typeof(rebuild_sphere))]
public class rebuild_sphereEditor : Editor
{
    public override void OnInspectorGUI()
    {
        if (GUILayout.Button("Reset Sphere"))
        {
            rebuild_sphere.ResetSphere(Selection.activeGameObject.GetComponent<rebuild_sphere>().MF.sharedMesh);
        }
    }
}

Place the rebuild_sphere.cs script on a game object and press the button!

Thanks to the suggestions by @Owen Reynolds and @buddingmonkey for repairing a sphere, I took the time to build scripts to repair a plane. I’ll include them below:

RebuildPlane.cs

using UnityEngine;

[RequireComponent(typeof(MeshFilter))]
[ExecuteInEditMode]
public class RebuildPlane : MonoBehaviour {

    static Vector3[] vertices = { new Vector3(5.0f, 0.0f, 5.0f), new Vector3(4.0f, 0.0f, 5.0f), new Vector3(3.0f, 0.0f, 5.0f), new Vector3(2.0f, 0.0f, 5.0f), new Vector3(1.0f, 0.0f, 5.0f), new Vector3(0.0f, 0.0f, 5.0f), new Vector3(-1.0f, 0.0f, 5.0f), new Vector3(-2.0f, 0.0f, 5.0f), new Vector3(-3.0f, 0.0f, 5.0f), new Vector3(-4.0f, 0.0f, 5.0f), new Vector3(-5.0f, 0.0f, 5.0f), new Vector3(5.0f, 0.0f, 4.0f), new Vector3(4.0f, 0.0f, 4.0f), new Vector3(3.0f, 0.0f, 4.0f), new Vector3(2.0f, 0.0f, 4.0f), new Vector3(1.0f, 0.0f, 4.0f), new Vector3(0.0f, 0.0f, 4.0f), new Vector3(-1.0f, 0.0f, 4.0f), new Vector3(-2.0f, 0.0f, 4.0f), new Vector3(-3.0f, 0.0f, 4.0f), new Vector3(-4.0f, 0.0f, 4.0f), new Vector3(-5.0f, 0.0f, 4.0f), new Vector3(5.0f, 0.0f, 3.0f), new Vector3(4.0f, 0.0f, 3.0f), new Vector3(3.0f, 0.0f, 3.0f), new Vector3(2.0f, 0.0f, 3.0f), new Vector3(1.0f, 0.0f, 3.0f), new Vector3(0.0f, 0.0f, 3.0f), new Vector3(-1.0f, 0.0f, 3.0f), new Vector3(-2.0f, 0.0f, 3.0f), new Vector3(-3.0f, 0.0f, 3.0f), new Vector3(-4.0f, 0.0f, 3.0f), new Vector3(-5.0f, 0.0f, 3.0f), new Vector3(5.0f, 0.0f, 2.0f), new Vector3(4.0f, 0.0f, 2.0f), new Vector3(3.0f, 0.0f, 2.0f), new Vector3(2.0f, 0.0f, 2.0f), new Vector3(1.0f, 0.0f, 2.0f), new Vector3(0.0f, 0.0f, 2.0f), new Vector3(-1.0f, 0.0f, 2.0f), new Vector3(-2.0f, 0.0f, 2.0f), new Vector3(-3.0f, 0.0f, 2.0f), new Vector3(-4.0f, 0.0f, 2.0f), new Vector3(-5.0f, 0.0f, 2.0f), new Vector3(5.0f, 0.0f, 1.0f), new Vector3(4.0f, 0.0f, 1.0f), new Vector3(3.0f, 0.0f, 1.0f), new Vector3(2.0f, 0.0f, 1.0f), new Vector3(1.0f, 0.0f, 1.0f), new Vector3(0.0f, 0.0f, 1.0f), new Vector3(-1.0f, 0.0f, 1.0f), new Vector3(-2.0f, 0.0f, 1.0f), new Vector3(-3.0f, 0.0f, 1.0f), new Vector3(-4.0f, 0.0f, 1.0f), new Vector3(-5.0f, 0.0f, 1.0f), new Vector3(5.0f, 0.0f, 0.0f), new Vector3(4.0f, 0.0f, 0.0f), new Vector3(3.0f, 0.0f, 0.0f), new Vector3(2.0f, 0.0f, 0.0f), new Vector3(1.0f, 0.0f, 0.0f), new Vector3(0.0f, 0.0f, 0.0f), new Vector3(-1.0f, 0.0f, 0.0f), new Vector3(-2.0f, 0.0f, 0.0f), new Vector3(-3.0f, 0.0f, 0.0f), new Vector3(-4.0f, 0.0f, 0.0f), new Vector3(-5.0f, 0.0f, 0.0f), new Vector3(5.0f, 0.0f, -1.0f), new Vector3(4.0f, 0.0f, -1.0f), new Vector3(3.0f, 0.0f, -1.0f), new Vector3(2.0f, 0.0f, -1.0f), new Vector3(1.0f, 0.0f, -1.0f), new Vector3(0.0f, 0.0f, -1.0f), new Vector3(-1.0f, 0.0f, -1.0f), new Vector3(-2.0f, 0.0f, -1.0f), new Vector3(-3.0f, 0.0f, -1.0f), new Vector3(-4.0f, 0.0f, -1.0f), new Vector3(-5.0f, 0.0f, -1.0f), new Vector3(5.0f, 0.0f, -2.0f), new Vector3(4.0f, 0.0f, -2.0f), new Vector3(3.0f, 0.0f, -2.0f), new Vector3(2.0f, 0.0f, -2.0f), new Vector3(1.0f, 0.0f, -2.0f), new Vector3(0.0f, 0.0f, -2.0f), new Vector3(-1.0f, 0.0f, -2.0f), new Vector3(-2.0f, 0.0f, -2.0f), new Vector3(-3.0f, 0.0f, -2.0f), new Vector3(-4.0f, 0.0f, -2.0f), new Vector3(-5.0f, 0.0f, -2.0f), new Vector3(5.0f, 0.0f, -3.0f), new Vector3(4.0f, 0.0f, -3.0f), new Vector3(3.0f, 0.0f, -3.0f), new Vector3(2.0f, 0.0f, -3.0f), new Vector3(1.0f, 0.0f, -3.0f), new Vector3(0.0f, 0.0f, -3.0f), new Vector3(-1.0f, 0.0f, -3.0f), new Vector3(-2.0f, 0.0f, -3.0f), new Vector3(-3.0f, 0.0f, -3.0f), new Vector3(-4.0f, 0.0f, -3.0f), new Vector3(-5.0f, 0.0f, -3.0f), new Vector3(5.0f, 0.0f, -4.0f), new Vector3(4.0f, 0.0f, -4.0f), new Vector3(3.0f, 0.0f, -4.0f), new Vector3(2.0f, 0.0f, -4.0f), new Vector3(1.0f, 0.0f, -4.0f), new Vector3(0.0f, 0.0f, -4.0f), new Vector3(-1.0f, 0.0f, -4.0f), new Vector3(-2.0f, 0.0f, -4.0f), new Vector3(-3.0f, 0.0f, -4.0f), new Vector3(-4.0f, 0.0f, -4.0f), new Vector3(-5.0f, 0.0f, -4.0f), new Vector3(5.0f, 0.0f, -5.0f), new Vector3(4.0f, 0.0f, -5.0f), new Vector3(3.0f, 0.0f, -5.0f), new Vector3(2.0f, 0.0f, -5.0f), new Vector3(1.0f, 0.0f, -5.0f), new Vector3(0.0f, 0.0f, -5.0f), new Vector3(-1.0f, 0.0f, -5.0f), new Vector3(-2.0f, 0.0f, -5.0f), new Vector3(-3.0f, 0.0f, -5.0f), new Vector3(-4.0f, 0.0f, -5.0f), new Vector3(-5.0f, 0.0f, -5.0f) };

    static Vector3[] normals = { new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f), new Vector3(0.0f, 1.0f, 0.0f) };

    static Vector2[] uvs = { new Vector2(0.0f, 0.0f), new Vector2(0.1f, 0.0f), new Vector2(0.2f, 0.0f), new Vector2(0.3f, 0.0f), new Vector2(0.4f, 0.0f), new Vector2(0.5f, 0.0f), new Vector2(0.6f, 0.0f), new Vector2(0.7f, 0.0f), new Vector2(0.8f, 0.0f), new Vector2(0.9f, 0.0f), new Vector2(1.0f, 0.0f), new Vector2(0.0f, 0.1f), new Vector2(0.1f, 0.1f), new Vector2(0.2f, 0.1f), new Vector2(0.3f, 0.1f), new Vector2(0.4f, 0.1f), new Vector2(0.5f, 0.1f), new Vector2(0.6f, 0.1f), new Vector2(0.7f, 0.1f), new Vector2(0.8f, 0.1f), new Vector2(0.9f, 0.1f), new Vector2(1.0f, 0.1f), new Vector2(0.0f, 0.2f), new Vector2(0.1f, 0.2f), new Vector2(0.2f, 0.2f), new Vector2(0.3f, 0.2f), new Vector2(0.4f, 0.2f), new Vector2(0.5f, 0.2f), new Vector2(0.6f, 0.2f), new Vector2(0.7f, 0.2f), new Vector2(0.8f, 0.2f), new Vector2(0.9f, 0.2f), new Vector2(1.0f, 0.2f), new Vector2(0.0f, 0.3f), new Vector2(0.1f, 0.3f), new Vector2(0.2f, 0.3f), new Vector2(0.3f, 0.3f), new Vector2(0.4f, 0.3f), new Vector2(0.5f, 0.3f), new Vector2(0.6f, 0.3f), new Vector2(0.7f, 0.3f), new Vector2(0.8f, 0.3f), new Vector2(0.9f, 0.3f), new Vector2(1.0f, 0.3f), new Vector2(0.0f, 0.4f), new Vector2(0.1f, 0.4f), new Vector2(0.2f, 0.4f), new Vector2(0.3f, 0.4f), new Vector2(0.4f, 0.4f), new Vector2(0.5f, 0.4f), new Vector2(0.6f, 0.4f), new Vector2(0.7f, 0.4f), new Vector2(0.8f, 0.4f), new Vector2(0.9f, 0.4f), new Vector2(1.0f, 0.4f), new Vector2(0.0f, 0.5f), new Vector2(0.1f, 0.5f), new Vector2(0.2f, 0.5f), new Vector2(0.3f, 0.5f), new Vector2(0.4f, 0.5f), new Vector2(0.5f, 0.5f), new Vector2(0.6f, 0.5f), new Vector2(0.7f, 0.5f), new Vector2(0.8f, 0.5f), new Vector2(0.9f, 0.5f), new Vector2(1.0f, 0.5f), new Vector2(0.0f, 0.6f), new Vector2(0.1f, 0.6f), new Vector2(0.2f, 0.6f), new Vector2(0.3f, 0.6f), new Vector2(0.4f, 0.6f), new Vector2(0.5f, 0.6f), new Vector2(0.6f, 0.6f), new Vector2(0.7f, 0.6f), new Vector2(0.8f, 0.6f), new Vector2(0.9f, 0.6f), new Vector2(1.0f, 0.6f), new Vector2(0.0f, 0.7f), new Vector2(0.1f, 0.7f), new Vector2(0.2f, 0.7f), new Vector2(0.3f, 0.7f), new Vector2(0.4f, 0.7f), new Vector2(0.5f, 0.7f), new Vector2(0.6f, 0.7f), new Vector2(0.7f, 0.7f), new Vector2(0.8f, 0.7f), new Vector2(0.9f, 0.7f), new Vector2(1.0f, 0.7f), new Vector2(0.0f, 0.8f), new Vector2(0.1f, 0.8f), new Vector2(0.2f, 0.8f), new Vector2(0.3f, 0.8f), new Vector2(0.4f, 0.8f), new Vector2(0.5f, 0.8f), new Vector2(0.6f, 0.8f), new Vector2(0.7f, 0.8f), new Vector2(0.8f, 0.8f), new Vector2(0.9f, 0.8f), new Vector2(1.0f, 0.8f), new Vector2(0.0f, 0.9f), new Vector2(0.1f, 0.9f), new Vector2(0.2f, 0.9f), new Vector2(0.3f, 0.9f), new Vector2(0.4f, 0.9f), new Vector2(0.5f, 0.9f), new Vector2(0.6f, 0.9f), new Vector2(0.7f, 0.9f), new Vector2(0.8f, 0.9f), new Vector2(0.9f, 0.9f), new Vector2(1.0f, 0.9f), new Vector2(0.0f, 1.0f), new Vector2(0.1f, 1.0f), new Vector2(0.2f, 1.0f), new Vector2(0.3f, 1.0f), new Vector2(0.4f, 1.0f), new Vector2(0.5f, 1.0f), new Vector2(0.6f, 1.0f), new Vector2(0.7f, 1.0f), new Vector2(0.8f, 1.0f), new Vector2(0.9f, 1.0f), new Vector2(1.0f, 1.0f) };

    static int[] triangles = { 0, 11, 12, 0, 12, 1, 1, 12, 13, 1, 13, 2, 2, 13, 14, 2, 14, 3, 3, 14, 15, 3, 15, 4, 4, 15, 16, 4, 16, 5, 5, 16, 17, 5, 17, 6, 6, 17, 18, 6, 18, 7, 7, 18, 19, 7, 19, 8, 8, 19, 20, 8, 20, 9, 9, 20, 21, 9, 21, 10, 14, 26, 15, 15, 26, 27, 15, 27, 16, 16, 27, 28, 16, 28, 17, 17, 28, 29, 17, 29, 18, 18, 29, 30, 18, 30, 19, 19, 30, 31, 19, 31, 20, 20, 31, 32, 20, 32, 21, 26, 38, 27, 26, 37, 38, 25, 37, 26, 14, 25, 26, 13, 25, 14, 13, 24, 25, 12, 24, 13, 12, 23, 24, 11, 23, 12, 11, 22, 23, 22, 34, 23, 22, 33, 34, 23, 34, 35, 23, 35, 24, 24, 35, 36, 24, 36, 25, 25, 36, 37, 31, 43, 32, 33, 45, 34, 33, 44, 45, 34, 45, 46, 34, 46, 35, 35, 46, 47, 35, 47, 36, 36, 47, 48, 36, 48, 37, 37, 48, 49, 37, 49, 38, 38, 49, 50, 38, 50, 39, 27, 38, 39, 27, 39, 28, 28, 39, 40, 28, 40, 29, 29, 40, 41, 29, 41, 30, 30, 41, 42, 30, 42, 31, 31, 42, 43, 39, 50, 51, 39, 51, 40, 40, 51, 52, 40, 52, 41, 41, 52, 53, 41, 53, 42, 42, 53, 54, 42, 54, 43, 50, 62, 51, 50, 61, 62, 51, 62, 63, 51, 63, 52, 52, 63, 64, 52, 64, 53, 53, 64, 65, 53, 65, 54, 61, 73, 62, 61, 72, 73, 60, 72, 61, 49, 60, 61, 48, 60, 49, 48, 59, 60, 47, 59, 48, 47, 58, 59, 46, 58, 47, 46, 57, 58, 45, 57, 46, 45, 56, 57, 44, 56, 45, 44, 55, 56, 55, 67, 56, 55, 66, 67, 56, 67, 68, 56, 68, 57, 57, 68, 69, 57, 69, 58, 58, 69, 70, 58, 70, 59, 59, 70, 71, 59, 71, 60, 60, 71, 72, 66, 78, 67, 66, 77, 78, 67, 78, 79, 67, 79, 68, 68, 79, 80, 68, 80, 69, 69, 80, 81, 69, 81, 70, 70, 81, 82, 70, 82, 71, 71, 82, 83, 71, 83, 72, 72, 83, 84, 72, 84, 73, 73, 84, 85, 73, 85, 74, 62, 73, 74, 62, 74, 63, 63, 74, 75, 63, 75, 64, 64, 75, 76, 64, 76, 65, 74, 85, 86, 74, 86, 75, 75, 86, 87, 75, 87, 76, 80, 92, 81, 81, 92, 93, 81, 93, 82, 82, 93, 94, 82, 94, 83, 83, 94, 95, 83, 95, 84, 84, 95, 96, 84, 96, 85, 85, 96, 97, 85, 97, 86, 86, 97, 98, 86, 98, 87, 92, 104, 93, 92, 103, 104, 91, 103, 92, 80, 91, 92, 79, 91, 80, 79, 90, 91, 78, 90, 79, 78, 89, 90, 77, 89, 78, 77, 88, 89, 88, 100, 89, 88, 99, 100, 89, 100, 101, 89, 101, 90, 90, 101, 102, 90, 102, 91, 91, 102, 103, 97, 109, 98, 99, 111, 100, 99, 110, 111, 100, 111, 112, 100, 112, 101, 101, 112, 113, 101, 113, 102, 102, 113, 114, 102, 114, 103, 103, 114, 115, 103, 115, 104, 104, 115, 116, 104, 116, 105, 93, 104, 105, 93, 105, 94, 94, 105, 106, 94, 106, 95, 95, 106, 107, 95, 107, 96, 96, 107, 108, 96, 108, 97, 97, 108, 109, 105, 116, 117, 105, 117, 106, 106, 117, 118, 106, 118, 107, 107, 118, 119, 107, 119, 108, 108, 119, 120, 108, 120, 109, 49, 61, 50 };

    public MeshFilter MF;

    void Start()
    {
        MF = gameObject.GetComponent<MeshFilter>();
    }

    public static void ResetPlane(Mesh plane)
    {
        plane.vertices = RebuildPlane.vertices;
        plane.normals = RebuildPlane.normals;
        plane.uv = RebuildPlane.uvs;
        plane.triangles = RebuildPlane.triangles;
    }

}

Editor\RebuildPlaneEditor.cs

using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(RebuildPlane))]
public class rebuild_sphereEditor : Editor
{
    public override void OnInspectorGUI()
    {
        if (GUILayout.Button("Reset Plane"))
        {
            RebuildPlane.ResetPlane(Selection.activeGameObject.GetComponent<RebuildPlane>().MF.sharedMesh);
        }
    }
}

Restarting Unity worked for me :slight_smile: