This commit is contained in:
be5invis 2023-07-08 02:29:08 -07:00
parent 46876e115b
commit 69048c95ab
2 changed files with 6 additions and 22 deletions

View file

@ -118,8 +118,7 @@ class NormalRectifier {
if (isTangentValid(d)) {
this.m_biKnots[0].origTangent = d;
} else {
this.m_biKnots[0].origTangent = { x: 0, y: 0 };
// throw new Error("NaN angle detected.");
throw new Error("NaN angle detected.");
}
}
if (this.m_biKnots[this.m_nKnotsProcessed]) {
@ -127,8 +126,7 @@ class NormalRectifier {
if (isTangentValid(d)) {
this.m_biKnots[this.m_nKnotsProcessed].origTangent = d;
} else {
this.m_biKnots[this.m_nKnotsProcessed].origTangent = { x: 0, y: 0 };
// throw new Error("NaN angle detected.");
throw new Error("NaN angle detected.");
}
}
this.m_nKnotsProcessed += 1;