From c348aa48b52d987441f839a4f231dba85d949966 Mon Sep 17 00:00:00 2001 From: kion Date: Sun, 7 Jul 2024 13:54:57 +0900 Subject: [PATCH] encode da triangles --- test/body.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/body.test.ts b/test/body.test.ts index 5797f82..e8487b3 100644 --- a/test/body.test.ts +++ b/test/body.test.ts @@ -172,6 +172,8 @@ test('Re-encoding the faces read from the body', () => { expect(Math.floor((b.v - PIXEL_ADJUSTMEST) / PIXEL_TO_FLOAT_RATIO)).toEqual(bv); expect(Math.floor((c.u - PIXEL_ADJUSTMEST) / PIXEL_TO_FLOAT_RATIO)).toEqual(cu); expect(Math.floor((c.v - PIXEL_ADJUSTMEST) / PIXEL_TO_FLOAT_RATIO)).toEqual(cv); + + expect(indexA | (indexB << 7) | (indexC << 14) | (materialIndex << 28)).toEqual(dword); } });