Esempio n. 1
0
        public bool SetConnection(ReferencedPoint point)
        {
            Vector3[] tri_1 = point.GetTriangle();

            if (tri_1.Contains(this.Original))
            {
                this.AddConnection(point);
                return(true);
            }

            return(false);
        }
Esempio n. 2
0
        public void AddConnection(ReferencedPoint point)
        {
            if (point == null)
            {
                return;
            }

            if (Connections.Contains(point))
            {
                return;
            }

            for (int i = 0; i < Connections.Length; i++)
            {
                if (Connections[i] == null)
                {
                    Connections[i] = point;
                    break;
                }
            }
        }