//public Triangle newnx, newny, newnz; // Called for subdivisions public Triangle(Vector3 x, Vector3 y, Vector3 z, Triangle p, TriforcePosition tp, int sl) { v1 = x; v2 = y; v3 = z; center = (v1 + v2 + v3) / 3; //instance = this; //parent = p; triforcePosition = tp; subdivisionLevel = sl; }
//public Triangle newnx, newny, newnz; // Called for subdivisions public Triangle(Vector3 x, Vector3 y, Vector3 z, Triangle p, TriforcePosition tp, int sl) { v1 = x; v2 = y; v3 = z; center = (v1 + v2 + v3) / 3; //instance = this; //parent = p; triforcePosition = tp; subdivisionLevel = sl; index = -1; }