fix(ImageTo3D): enforce glb format in Meshy API payload
Build and Deploy / build-and-push (push) Successful in 46s
Build and Deploy / build-and-push (push) Successful in 46s
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
const fs = require('fs');
|
||||
const fflate = require('fflate');
|
||||
|
||||
const zipBuffer = fs.readFileSync('model.titanscene');
|
||||
const unzipped = fflate.unzipSync(zipBuffer);
|
||||
const sceneData = JSON.parse(new TextDecoder().decode(unzipped['scene.json']));
|
||||
console.log('cameraProps:', sceneData.cameraProps);
|
||||
console.log('modelData:', sceneData.modelData);
|
||||
console.log('sceneObjects length:', sceneData.sceneObjects?.length);
|
||||
if (sceneData.sceneObjects?.length > 0) {
|
||||
console.log('Main model transform:', sceneData.sceneObjects[0].transformProps);
|
||||
}
|
||||
Reference in New Issue
Block a user