public bool SetConnection(ReferencedPoint point) { Vector3[] tri_1 = point.GetTriangle(); if (tri_1.Contains(this.Original)) { this.AddConnection(point); return(true); } return(false); }
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; } } }