public void Fill(WorkBuffer <Int3> triangles) { var n = PrivateStars.Length; triangles.Extend(n); triangles.Clear(); for (var i = 0; i < n; ++i) { var list = PrivateStars[i]; var data = list.Data; var m = list.UsedSize; for (var j = 0; j < m; ++j) { var s = data[j]; if (i < Mathf.Min(s.x, s.y)) { var v = new Int3(i, s.x, s.y); triangles.Push(ref v); } } } }