MeshNode.FloodFill C# (CSharp) Method

FloodFill() public method

public FloodFill ( Stack stack, uint region ) : void
stack Stack
region uint
return void
		public override void FloodFill (Stack<GraphNode> stack, uint region) {
			//Faster, more specialized implementation to override the slow default implementation
			if (connections == null) return;
			
			for (int i=0;i<connections.Length;i++) {
				GraphNode other = connections[i];
				if (other.Area != region) {
					other.Area = region;
					stack.Push (other);
				}
			}
		}