TODO adjust mesh on the fly, keep MeshDraft buffer to predefined length. – Illustrate Process
Looked at stack for quad tracking – no explicit array hStack[n] addressing as in List<type> – Lifo is nice though.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
public Stack<Hex_Track> hStack = new Stack<Hex_Track>(); namespace System.Collections.Generic { [ComVisible(false)] public class Stack<T> : ICollection, IEnumerable, IEnumerable<T> { public Stack(); public Stack(int count); public Stack(IEnumerable<T> collection); public int Count { get; } public void Clear(); public bool Contains(T t); public void CopyTo(T[] dest, int idx); public Enumerator GetEnumerator(); public T Peek(); public T Pop(); public void Push(T t); public T[] ToArray(); public void TrimExcess(); public struct Enumerator : IEnumerator, IDisposable, IEnumerator<T> { public T Current { get; } public void Dispose(); public bool MoveNext(); } } } |