Пример #1
0
    public override void SetCount()
    {
        CircleVerts cv = (CircleVerts)toIndex;

        rows = cv.rows;
        cols = cv.cols;

        count = 0;

        // building out our full connection list and info!
        for (int i = 0; i < cols; i++)
        {
            for (int j = 0; j < rows; j++)
            {
                // Connections to row beneath
                if (j != 0)
                {
                    count += 3;
                }
                count += 2;
                if (j < rows - 1)
                {
                    count += 3;
                }
                // connection across
                //count += 1;
                //count += 1;
                //count += 1;
            }
        }
    }
Пример #2
0
 public override void SetCount()
 {
     cv    = (CircleVerts)toIndex;
     count = (cv.rows - 1) * (cv.cols) * 3 * 2;
 }