}
public void checkLegality() {
+ /*
for(E e = this.e; e!=null; e=e.pair.next==this.e?null:e.pair.next) {
if (Math.abs(e.crossAngle()) > (Math.PI * 0.9) ||
Math.abs(e.next.crossAngle()) > (Math.PI * 0.9)) illegal = true;
- //if (e.t.aspect() < 0.1) illegal = true;
+ if (e.t.aspect() < 0.1) illegal = true;
}
+ */
if (!illegal) triangles.range(oldp, this.p, (Visitor<T>)this);
}
p2.p.distance(error_against.nearest(p2.p).p))/2;
return nearest_distance/other_distance;
*/
- //return length();
- return t==null?0:(1/t.aspect());
+ return length();
+ //return t==null?0:(1/t.aspect());
}
public int compareTo(E e) {
return e.comparator() > comparator() ? 1 : -1;
return true;
}
+ /** issue gl.glVertex() for each of the triangle's points */
+ public void glVertices(GL gl) {
+ norm().glNormal(gl);
+ Point p1 = v1().oldp;
+ Point p2 = v2().oldp;
+ Point p3 = v3().oldp;
+ if (p1==null || p2==null || p3==null) return;
+ p1.glVertex(gl);
+ p2.glVertex(gl);
+ p3.glVertex(gl);
+ }
+
}
}