Пример #1
0
        public PlanetCell(PlanetVertex a, PlanetVertex b, PlanetVertex c)
        {
            this.a = a;
            this.b = b;
            this.c = c;

            // edges are false by default
            this.isEdgeAB = false;
            this.isEdgeAC = false;
            this.isEdgeBC = false;
        }
Пример #2
0
        public PlanetCell(PlanetVertex a, PlanetVertex b, PlanetVertex c, int ai, int bi, int ci)
        {
            this.a = a;
            this.b = b;
            this.c = c;

            this.ai = ai;
            this.bi = bi;
            this.ci = ci;

            // Note: ADDING POINTS TO EACH OTHER'S NEIGHBOR LIST IS HARAM AS F**K AT THIS POINT
            // Since we're calling this construction on _every_ subdivision, adding neighbors here
            // rather than in post will only result in us adding way too many points to the
            // neighbor list. And that is rather bad.

            // edges are false by default
            this.isEdgeAB = false;
            this.isEdgeAC = false;
            this.isEdgeBC = false;
        }