线条中的3D绘图,在Viewer中不显示3D [英] 3D drawing in lines, not displaying 3D in Viewer
问题描述
我只有点和线的3D DWG图纸。我上传并翻译了它,输出格式为:
I have a 3D DWG drawing of only points and lines. I uploaded and translated it, with output format:
'type':'svf',
'views':[
'2d',
'3d'
]
'type':'svf', 'views':[ '2d', '3d' ]
在前端,
geometryItems = Autodesk.Viewing.Document.getSubItemsWithProperties(document.getRootItem(), {
'type' : 'geometry',
'role' : '2d'
}, true);
查看器显示2D绘图,就好像被展平了。
Viewer shows 2D drawing, as if been flattened.
如果我将角色从2d更改为3d,则查看器不会显示,因为geometryItems.length ==0。
If I change 'role' from 2d to 3d, viewer doesn't show up, because geometryItems.length == 0.
以任何方式可以在3D中显示带有线/点的3D绘图吗?谢谢。
Any way I can show 3D drawing with line/point in 3D, please? Thank you.
PS:我将文件加载到A360,结果相同。然后我从A360下载了它,它是原始的3d版本。
PS: I loaded the file to A360, same result. Then I downloaded it from A360, it was 3d as original.
推荐答案
今天(2016年8月),2D几何(例如,线,点)在Viewer 3D中不受支持。
As of today (August, 2016), 2D geometries (e.g. lines, points) are not supported in Viewer 3D.
这篇关于线条中的3D绘图,在Viewer中不显示3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!