| Name | ||
|---|---|---|
|
3ce0edb · last year
|
||
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
2 years ago
|
|
|
|
last year
|
|
|
|
2 years ago
|
|
|
|
last year
|
|
|
|
last year
|
|
|
|
last year
|
|
|
|
last year
|
|
|
|
last year
|
|
|
|
last year
|
|
|
|
last year
|
|
存储库文件导航
将 3D 模型 (STL/IGES/STEP/OBJ/FBX) 转换为 gltf 等
理论上支持的文件格式
- 导入:obj、3ds、stl、ply、gltf、glb、off、3dm、fbx、dae、wrl、3mf、ifc、brep、step、iges、fcstd、bim。
- 导出:obj、stl、ply、gltf、glb、off、3dm、bim。
npm install
{
"callback_url": "", // Conversion file result callback interface
"callback_file": true, // When calling the conversion file result callback interface, synchronously upload the converted file stream.
"s3_upload_config": {
"endPoint": "127.0.0.1",
"port": 9010,
"useSSL": false,
"accessKey": "xxxx",
"secretKey": "xxxxx",
"bucketName": "xxx-asset"
}
}
npm run dev
或
node ./app.js
请求 /convertwork/v1/importfile
方式:POST
数据类型:json
{
"request_id": "", //Request ID, used for conversion result identification, required.
"url": "", //Choose between the network file address, URL or file Only one.
"file": "<file>", //The file stream to convert,URL or file Only one.
"convert_type": "glb", //Conversion file type glb, etc., required.
"file_name": "", //file name,The file name must have a suffix.(for example:test.step)
"save_path": "" //minio s3 Save File Path
}
响应
{
"code": 0,
"msg": "OK",
"data": "gid" //Used for transitioning status queries
}
电子编码
4000 请求参数错误。验证必填参数
4001 不支持的文件类型
4002 不支持的转换文件类型
ps:当转换文件不正确或完成时,进度信息自动消除。
请求 /convertwork/v1/progress
方式:GET
数据类型:json
{
"gid": "" //Unique identification of the conversion file.
}
响应
{
"code": 0,
"msg": "OK",
"data": {
"stage": "", //transition stage
//FileListProgress Zip file processing, msg contains current, total
//FileLoadProgress File stream loading, msg contains current, total
//ImportStart
//ExportStart
"msg": "current, total" //Stage messages
}
}
电子编码
4003 转换文件进度信息不存在
请求<Config.callback_url>
方式:POST
数据类型:json
{
"request_id": "", //Unique identification of the conversion file.
"status": 0, //0 successfully converted; 1 Conversion failed
"msg": "", //Error message when conversion fails
"file": "<file>", //The converted file stream, when config.callback_ File=true
"file_path": "" //Converted mini s3 file path
}
如果响应失败,它将自动重试 3 次。
{
"code": 0,
"msg": "OK"
}
此库中的引擎代码使用 https://3dviewer.net/ 库。
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,请不要用于商业用途!
3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员!
8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载
声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性
GLB下载网 - GLB/GLTF模型与格式资源免费下载,支持在线浏览与转换 » step2glb 简介 将 3D 模型 (STL/IGES/STEP/OBJ/FBX) 转换为 gltf
2. 分享目的仅供大家学习和交流,请不要用于商业用途!
3. 如果你也有好源码或者教程,可以到用户中心发布,分享有积分奖励和额外收入!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 如遇到加密压缩包,默认解压密码为"gltf",如遇到无法解压的请联系管理员!
8. 因为资源和程序源码均为可复制品,所以不支持任何理由的退款兑现,请斟酌后支付下载
声明:如果标题没有注明"已测试"或者"测试可用"等字样的资源源码均未经过站长测试.特别注意没有标注的源码不保证任何可用性
GLB下载网 - GLB/GLTF模型与格式资源免费下载,支持在线浏览与转换 » step2glb 简介 将 3D 模型 (STL/IGES/STEP/OBJ/FBX) 转换为 gltf
常见问题FAQ
- 免费下载或者VIP会员专享资源能否直接商用?
- 本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
- 提示下载要提取码
- 分享过期和重复下载怎么办
- 模型和平台不兼容怎么办