且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

InstanceTree 在查看器的移动版本中不可用

更新时间:2023-02-25 22:03:16

当您无法在移动设备***问模型的对象树时,您可能会遇到 Forge 查看器的内存限制,您可以尝试通过将 memory.limit 配置属性显式设置为零来绕过这些:

When you're unable to access the object tree of a model on a mobile device, you're likely hitting memory limits of the Forge viewer, and you can try to bypass those by explicitly setting the memory.limit config property to zero:

viewer = new Autodesk.Viewing.Private.GuiViewer3D(
    document.getElementById('viewer'),
    { memory: { limit: 0 } }
);