We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d1eb14 commit 84aa8c0Copy full SHA for 84aa8c0
tests/parameterization/test.js
@@ -68,10 +68,9 @@ describe("SpectralConformalParameterization", function() {
68
let success = true;
69
for (let v of mesh.vertices) {
70
let p = new Complex(flattening[v].x, flattening[v].y);
71
- let s = new Complex(flattening_sol[v].x, flattening_sol[v].y);
72
- let pRot = rot.timesComplex(p);
73
- if (isNaN(pRot.re) || isNaN(pRot.im) || pRot.minus(s).norm() > 1e-6
74
- || Math.abs(flattening[v].z - flattening_sol[v].z) > 1e-6) {
+ let pRot = p.timesComplex(rot);
+ let flatteningRot = new Vector(pRot.re, pRot.im, flattening[v].z);
+ if (!flatteningRot.isValid() || flatteningRot.minus(flattening_sol[v]).norm() > 1e-6) {
75
success = false;
76
break;
77
}
0 commit comments