public void Add(Primitive p) { if (compiled) { // TODO: continuos compilation? throw new InvalidOperationException("Cannot add to compiled octree"); } root.Add(p); }
/// <summary> /// Internal so that user cannot call it, but for exaple loader can call it. /// </summary> public void addObject(Primitive primitive) { this.objects.Add(primitive); }
public void Add(Primitive primitive) { this.primitives.Add(primitive); }