feat: started work on armor extraction

This commit is contained in:
TrèsAbhi committed 2024-01-08 18:34:04 -06:00
1 parent 1f39ecefe4
commit 7235291e69
16 files changed
+277 -43

No files matched your search

+3
View File
@@ -1,3 +1,4 @@
import { writeFile } from 'fs/promises';
import { ScpgStream, VertexAttribute } from './scpg';
interface PolygonGroupRaw {
@@ -66,6 +67,8 @@ export class ScgStream extends ScpgStream {
polygonGroupsRaw.push(polygonGroupRaw);
}
writeFile('test.scg.json', JSON.stringify({ polygonGroupsRaw }, null, 2));
polygonGroupsRaw.forEach((polygonGroupRaw) => {
const indicesStream = new ScpgStream(polygonGroupRaw.indices);
const indices: number[] = [];