Autodesk Forge 查看器:直接加载 SVF?

Autodesk Forge viewer: Directly load a SVF?

正如官方文档所述,您可以将源文件上传到 OSS 并将其转换为包含模型导数的 SVF API。

但是否可以跳过翻译步骤,直接上传 SVF 项目(例如,其中之一:https://forge-rcdb.autodesk.io/gallery)并加载到网络查看器中?

我既不能做到,也找不到任何文档。

是的,这是可能的。不是使用 Autodesk.Viewing.Document.load method, and then loading a specific "viewable" from the manifest using the Viewer3D#loadDocumentNode method, you can just call the viewer's loadModel 方法加载模型衍生服务“清单”,而是向您的 SVF 文件提供实际的 URL。

但请注意,Forge Viewer 资产(JavaScript、CSS 文件、图标等)仍应来自 Autodesk 域。也就是说,我们官方不支持运行离线应用。如果您需要支持您的用户可能暂时 与互联网断开连接的工作流,请参阅https://forge.autodesk.com/blog/disconnected-workflows