//System.out.println("error: " + tile_error + " / " + goal_error);
hits++;
} else {
- p.move(m.inverse(), true);
+ p.move(Matrix.translate(v.times(-1)), true);
misses++;
}
}
public void reComputeErrorAround() {
reComputeError();
- if (nearest_in_other_mesh != null) nearest_in_other_mesh.reComputeError();
+ if (nearest_in_other_mesh != null)
+ nearest_in_other_mesh.reComputeError();
for(E e = this.e; e!=null; e=e.pair.next==this.e?null:e.pair.next)
e.p2.reComputeError();
}
for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to)
good &= p.transform(m.times(p.p), ignoreProblems);
for(Vertex p = this; p != null; p = (p.bound_to==this)?null:p.bound_to)
- if (good) p.reComputeErrorAround();
+ if (good) { /*p.reComputeErrorAround();*/ }
else p.transform(p.oldp, true);
return good;
}