public override void PrepareForRendering() { var sw = System.Diagnostics.Stopwatch.StartNew(); this.objectCount = this.objects.Count; this.container = PrepareData(out this.boundingBoxes); this.raycastDelegate = Raycast; this.ocTree.Bake(this.boundingBoxes, this.container); sw.Stop(); Console.WriteLine(this.GetType().FullName + " prepared in " + sw.Elapsed.TotalMilliseconds + " ms"); }
public Bucket(OCTree <T> tree, BoundingBox boundingBox, Bucket parent = null) { this.tree = tree; this.boundingBox = boundingBox; this.parent = parent; }