public static final float EPSILON = (float)0.0001;
public static final Random random = new Random();
- public HashSet<T> ts = new HashSet<T>();
- public RTree<T> tris = new RTree<T>();
+ private RTree<T> tris = new RTree<T>();
+ private PointSet<Vert> vertices = new PointSet<Vert>();
+
public Mesh score_against = null;
public double score = 0;
public float score() { return (float)score; }
public int numedges = 0;
public float avgedge = 0;
- private PointSet<Vert> vertices = new PointSet<Vert>();
public int size() { return vertices.size(); }
public Iterable<Vert> vertices() { return vertices; }
public void removeFromRTree() { tris.remove(this); }
public void addToRTree() { tris.insert(this); }
- public void destroy() {
- tris.remove(this);
- ts.remove(this);
- }
+ public void destroy() { tris.remove(this); }
T(E e1, int colorclass) {
this.e1 = e1;
}
this.color = color;
this.colorclass = colorclass;
- ts.add(this);
tris.add(this);
}
public E e1() { return e1; }