Bugfix
This commit is contained in:
parent
46876e115b
commit
69048c95ab
2 changed files with 6 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue