private HashMap<Point,Vert> ps = new HashMap<Point,Vert>();
public HashSet<E> es = new HashSet<E>();
- public ArrayList<T> ts = new ArrayList<T>();
public Iterator<T> iterator() {
if (es.size() == 0) return new FaceIterator();
rescore();
boolean good = true;
/*
- for(T t : ts) {
+ for(T t : this) {
for(E e = this.e; ;) {
if (e.intersects(t)) { good = false; break; }
e = e.pair.next;
pair.destroyed = true;
if (next.t != null) next.t.destroy();
if (prev.t != null) prev.t.destroy();
- if (pair.next.t != null) ts.remove(pair.next.t);
- if (pair.prev.t != null) ts.remove(pair.prev.t);
next.t = null;
prev.t = null;
pair.next.t = null;
public final int color;
public void destroy() {
- ts.remove(this);
}
T(E e1) {
}
this.color = color;
- // FIXME unnecssary?
- ts.add(this);
v1().kdinsert();
v2().kdinsert();
v3().kdinsert();