public override void Split(ArrayList far, ArrayList near) { ArrayList f = new ArrayList(); ArrayList n = new ArrayList(); obj.Split(f, n); foreach (GlObject o in f) { far.Add(new TranslatedObject(origin, o)); } foreach (GlObject o in n) { near.Add(new TranslatedObject(origin, o)); } }
public void Add(GlObject obj) { objects.Add(obj); obj.Split(far, near); }