实例树在查看器的移动版本中不可用 [英] InstanceTree unavailable in the mobile version of the viewer

查看:32
本文介绍了实例树在查看器的移动版本中不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个函数,需要在桌面浏览器中工作的模型的instanceTree.

I have a function who require the instanceTree of my model who works in the desktop browser.

instanceTree = viewer.model.getData().instanceTree;
dbIds = getAllDbIds(instanceTree);

但是在查看器的移动版本中,由于某些原因,似乎缺少getData()的instanceTree.

But in the mobile version of the viewer, the instanceTree from getData() seems to be missing for some reasons.

您知道在移动查看器中访问instanceTree的方法吗?还是可以在查看器中指定一个选项以允许移动版本访问它?

Do you know a way to access the instanceTree in the mobile viewer ? Or is it possible to specify an option in the viewer to allow the mobile version to have access to it ?

我在查看器的v6版本中

I'm in the version v6 of the viewer

我在v7中尝试过,但结果相同.

I tried in the v7 but it's the same result.

谢谢

推荐答案

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

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 } }
);

这篇关于实例树在查看器的移动版本中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆