From f013bf7fc89e886f3bc5e2be111a9db984d6b027 Mon Sep 17 00:00:00 2001 From: Lajos Meszaros Date: Thu, 16 May 2024 12:49:37 +0200 Subject: [PATCH] fix(Polygon): fix incorrect normal calculation for the last polygon of a quad --- src/Polygon.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Polygon.ts b/src/Polygon.ts index 1db69f62..c692953e 100644 --- a/src/Polygon.ts +++ b/src/Polygon.ts @@ -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) } }