Beispiel #1
0
 public void Add(Primitive p)
 {
     if (compiled)
     {
         // TODO: continuos compilation?
         throw new InvalidOperationException("Cannot add to compiled octree");
     }
     root.Add(p);
 }
Beispiel #2
0
 /// <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);
 }
Beispiel #3
0
 public void Add(Primitive primitive)
 {
     this.primitives.Add(primitive);
 }