3D drawing in lines, not displaying 3D in Viewer

北慕城南 提交于 2019-12-11 08:17:51

问题


I have a 3D DWG drawing of only points and lines. I uploaded and translated it, with output format:

'type':'svf', 'views':[ '2d', '3d' ]

In front end,

geometryItems = Autodesk.Viewing.Document.getSubItemsWithProperties(document.getRootItem(), {
    'type' : 'geometry',
    'role' : '2d'
}, true);

Viewer shows 2D drawing, as if been flattened.

If I change 'role' from 2d to 3d, viewer doesn't show up, because geometryItems.length == 0.

Any way I can show 3D drawing with line/point in 3D, please? Thank you.

PS: I loaded the file to A360, same result. Then I downloaded it from A360, it was 3d as original.


回答1:


As of today (August, 2016), 2D geometries (e.g. lines, points) are not supported in Viewer 3D.



来源:https://stackoverflow.com/questions/39081868/3d-drawing-in-lines-not-displaying-3d-in-viewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!