Skip to content

Commit

Permalink
fix(Polygon): fix incorrect normal calculation for the last polygon o…
Browse files Browse the repository at this point in the history
…f a quad
  • Loading branch information
meszaros-lajos-gyorgy committed May 16, 2024
1 parent aa4ea18 commit f013bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class Polygon {
triangle.getNormal(this.norm)

if (this.isQuad()) {
const triangle2 = new Triangle(d, b, c)
const triangle2 = new Triangle(d, c, b)
triangle2.getNormal(this.norm2)
}
}
Expand Down

0 comments on commit f013bf7

Please sign in to comment.