3D 绘制线条,不在查看器中显示 3D [英] 3D drawing in lines, not displaying 3D in Viewer
问题描述
我有一个只有点和线的 3D DWG 绘图.我上传并翻译了它,输出格式:
<块引用>'type':'svf',意见":['2d','3d']
前端,
<块引用>geometryItems = Autodesk.Viewing.Document.getSubItemsWithProperties(document.getRootItem(), {'类型':'几何',角色":二维"}, 真的);
查看器显示 2D 绘图,就像被展平了一样.
如果我将角色"从 2d 更改为 3d,查看器不会显示,因为 geometryItems.length == 0.
我可以用 3D 中的线/点显示 3D 绘图吗?谢谢.
PS:我将文件加载到 A360,结果相同.然后我从A360下载了它,它是原始的3d.
截至今天(2016 年 8 月),Viewer 3D 不支持 2D 几何图形(例如线、点).
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.
As of today (August, 2016), 2D geometries (e.g. lines, points) are not supported in Viewer 3D.
这篇关于3D 绘制线条,不在查看器中显示 3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!