예제 #1
0
        private void UpdatingTrisThread(object obj)
        {
            AdjacentTriangles adjacentTriangles = (AdjacentTriangles)obj;

            Debug.Log(adjacentTriangles.from + " " + adjacentTriangles.to + " Start");
            for (int i = adjacentTriangles.from; i < adjacentTriangles.to; i++)
            {
                AddAdjacentTriangles(triangles[i]);
            }
            Debug.Log("Done " + adjacentTriangles.from + " to " + adjacentTriangles.to);
        }
예제 #2
0
        private void UpdatingTrisThread(object obj)
        {
            AdjacentTriangles adjacentTriangles = (AdjacentTriangles)obj;

            for (int i = adjacentTriangles.from; i < adjacentTriangles.to; i++)
            {
                for (int j = 0; j < triangles.Length; j++)
                {
                    if (triangles[i].Equals(triangles[j]))
                    {
                        continue;
                    }
                    if (triangles[i].IsAdjacent(triangles[j]))
                    {
                        triangles[i].adjacentTriangles.Add(triangles[j].ID);
                    }
                }
            }
            Debug.Log("Done " + adjacentTriangles.from + " to " + adjacentTriangles.to);
        }