AutodeskForgeViewer-ErrorwhileprocessingSVF
创始人
2024-11-12 10:30:33
0

在处理SVF格式时出现错误,解决方法是对模型进行3D格式转换,例如转换为OBJ格式,然后再使用Forge API将其转换为SVF格式。参考代码如下:

const express = require('express');
const bodyParser = require('body-parser');

const app = express();
app.use(bodyParser.urlencoded({ extended: false }));
app.use(bodyParser.json());

const { DerivativeApi } = require('forge-apis');

const CLIENT_ID = 'your_client_id';
const CLIENT_SECRET = 'your_client_secret';
const BUCKET_KEY = 'your_bucket_key';
const OBJECT_NAME = 'your_object_name';
const FILE_URN = 'your_file_urn';

const apiInstance = new DerivativeApi();
apiInstance.authManager.authenticate();

const job = {
  input: {
    urn: FILE_URN,
  },
  output: {
    formats: [
      {
        type: 'obj',
        advanced: {
          modelGuid: '',
        },
      },
    ],
  },
};

apiInstance.translate(job, {}, (err, data) => {
  if (err) { console.log(err); return; }
  console.log(data);
});

此代码将输入模型转换为OBJ格式,然后再使用Forge API将其转换为SVF格式,以避免在处理SVF格式时出现错误。

相关内容

热门资讯

透视神器"智星德州插... 1、透视神器"智星德州插件"详细辅助科技教程(高级辅助软件);详细教程。2、智星德州插件透视辅助简单...
透视透视"xpoke... 透视透视"xpoker辅助怎么用"详细辅助力荐教程(开挂透明)关于xpoker辅助怎么用机制的,其中...
透视规律"hhpok... 透视规律"hhpoker一直输有挂吗"详细辅助必备教程(私人辅助软件软件);最新版2024是一款经典...
透视脚本"wepok... 透视脚本"wepoker透视脚本"详细辅助2025版教程(私人局辅助器可以用教程);原来确实真的有挂...
透视存在"hhpok... 您好,hhpoker破解工具这款游戏可以开挂的,确实是有挂的,需要了解加微【136704302】很多...
透视攻略"cloud... 透视攻略"cloudpoker作弊"详细辅助新2025版(手机插件透明);1.cloudpoker作...
透视新版"wepok... 透视新版"wepoker透视脚本是什么"详细辅助分享教程(透视底牌透视)是一款可以让一直输的玩家,快...
透视透视"epoke... 透视透视"epoker透视"详细辅助力荐教程(透视底牌透视)这是由厦门游乐互动科技有限公司精心打造的...
透视好牌"wepok... 1、透视好牌"wepoker软件靠谱么"详细辅助安装教程(透视脚本免费透视)。2、wepoker软件...
透视实锤"wepok... 1、透视实锤"wepoker怎么看牌型"详细辅助分享教程(破解辅助插件软件)2、进入游戏-大厅左侧-...