public override void DrawBox(ElementTag tag, BoundingBox box, IEntityManager emanager) { var points = GeometryBuilder.BuildBox(box); var color = V4Colors.NextColor(random); if (tag.IsEmpty) { Thread.Sleep(10); tag = new ElementTag(DateTime.Now.Ticks.ToString()); } debug.Add(PolylineGameObject.Create(emanager, new ElementTag("OctreeBox_" + tag.ToString()), points, points.Select(x => color).ToArray())); }