} while(e != this.e);
// FIXME: intersection test needed?
- return true;
+ boolean good = true;
+ for(T t : Mesh.this) {
+ if (!good) break;
+ e = this.e;
+ do {
+ if (!t.has(e.p1) && !t.has(e.p2) && e.t != null && e.intersects(t)) { good = false; break; }
+ e = e.pair.next;
+ } while(e != this.e);
+ }
+ return good;
}
public boolean move(Vec v) {
public void reshape(GLAutoDrawable drawable, int x, int y, int width, int height) { }
public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) { }
public synchronized void display(GLAutoDrawable drawable) {
+ if (translations==null) return;
GL gl = drawable.getGL();
GLU glu = new GLU();
gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);