// Update is called once per frame void Update() { if (Numpoints != m_Numpoints || Radiuspoints != m_Radiuspoints) { m_Numpoints = Numpoints; m_Radiuspoints = Radiuspoints; Fp.Update_Points(Numpoints, Radiuspoints); Wv = new WeatherVoxels(Fp.Vertices, Fp.Triangles); Wv.FillTexCoords(this.gameObject); //for (int i = 0; i < Wv.voxels[SelectedPoint].Get_Neighbors().Count; i++) //{ // UnityEngine.Debug.Log(Wv.voxels[SelectedPoint].Get_Neighbor(i).Get_Index()); //} } if (SelectedPoint > Numpoints) { SelectedPoint = Numpoints; } else if (SelectedPoint < 0) { SelectedPoint = 0; } }
// Start is called before the first frame update void Start() { Fp = new FibonacciPoints3D(Numpoints, Radiuspoints); Wv = new WeatherVoxels(Fp.Points3D.ToArray(), Fp.Triangles); //Projectiontype = Projection.Mercator; }