Exemple #1
0
 public PlanetVertex(PlanetVertex old, Vector3 position, float h)
 {
     this.x         = position.x;
     this.y         = position.y;
     this.z         = position.z;
     this.h         = h;
     this.flags     = old.flags;
     this.neighbors = old.neighbors;
 }
Exemple #2
0
        // public List<PlanetCell> polygons;

        public PlanetVertex(float x, float y, float z)
        {
            this.x = x;
            this.y = y;
            this.z = z;

            this.h     = 0.0f;
            this.flags = PlanetVertexFlags.None;

            // a vertex can have at most this many neighbours. Most will have 6.
            this.neighbors = new List <PlanetVertex>(6);
            // this.polygons = new List<PlanetCell>(6);
        }