AutoDesk Forge Viewer API问题

时间:2017-12-07 09:51:33

标签: javascript autocad autodesk-forge autodesk autodesk-viewer

在加载文档时,我收到此错误

wgs.js:21467 Uncaught TypeError: Cannot read property 'numGeoms' of undefined
    at d.RenderModel.initialize (wgs.js:21467)
    at a.onModelRootLoadDone (viewer3D.min.js:4484)
    at Worker.p (viewer3D.min.js:4432)
    RenderModel.initialize @ wgs.js:21467
    a.onModelRootLoadDone @ viewer3D.min.js:4484
    p @ viewer3D.min.js:4432
    viewer3D.min.js:4446 Uncaught TypeError: Cannot read property 
    'meshToGeometry' of undefined
        at a.processReceivedMesh (viewer3D.min.js:4446)
        at a.processReceivedMesh2D (viewer3D.min.js:4465)
        at Worker.p (viewer3D.min.js:4432)
        a.processReceivedMesh @ viewer3D.min.js:4446
        a.processReceivedMesh2D @ viewer3D.min.js:4465
        p @ viewer3D.min.js:4432
       validator.html:1 [.Offscreen-For-WebGL-0x55a2800ad520]GL ERROR:GL_INVALID_FRAMEBUFFER_OPERATION : glClear: framebuffer incomplete (check) 59 viewer3D.min.js:4446 
Uncaught TypeError: Cannot read property 'meshToGeometry' of undefined
    at a.processReceivedMesh (viewer3D.min.js:4446)
    at a.processReceivedMesh2D (viewer3D.min.js:4465)
    at Worker.p (viewer3D.min.js:4432)

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:0)

此问题可能是由于使用过时版本的查看器引起的。

目前,Viewer处于3.3版本我将建议进行迁移以解决您的问题,并利用所有新功能。

以下是更改日志列表 https://developer.autodesk.com/en/docs/viewer/v2/overview/changelog/

这里有关于新版本的博文 https://forge.autodesk.com/blog/viewer-release-notes-v33