2024-11-25 16:55:55 +00:00
|
|
|
import * as fs from 'fs';
|
|
|
|
|
import { LLMesh } from '../classes/public/LLMesh';
|
|
|
|
|
const fileName = '/home/tom/projects/node-libnmv/assets/ce167705-00a3-4664-8c6c-a58edf9f0001_mesh.llmesh';
|
|
|
|
|
|
|
|
|
|
const buf = fs.readFileSync(fileName);
|
|
|
|
|
LLMesh.from(buf).then((mesh: LLMesh) =>
|
|
|
|
|
{
|
|
|
|
|
console.log(mesh);
|
2025-01-17 23:37:54 +00:00
|
|
|
}).catch((e: unknown) =>
|
|
|
|
|
{
|
|
|
|
|
console.error(e);
|
2024-11-25 16:55:55 +00:00
|
|
|
});
|
|
|
|
|
|