Esempio n. 1
0
        public CSGPolygon(CSGVertex P0, CSGVertex P1, CSGVertex P2)
        {
            vertices.Add(P0);
            vertices.Add(P1);
            vertices.Add(P2);

            shared = 0;

            this.plane = CSGPlane.fromPoints(P0.pos, P1.pos, P2.pos);
        }
Esempio n. 2
0
 public CSGPolygon(List <CSGVertex> vertices, int shared)
 {
     this.vertices = vertices;
     this.shared   = shared;
     this.plane    = CSGPlane.fromPoints(vertices[0].pos, vertices[1].pos, vertices[2].pos);
 }