Example #1
0
    //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;
    }
Example #2
0
    //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;
    }