VectorDraw常见问题合集,让你从菜鸡到大神(二)

221 阅读2分钟

    VectorDraw Developer Framework(VDF)是一个用于应用程序可视化的图形引擎库。有了VDF提供的功能,您可以轻松地创建、编辑、管理、输出、输入和打印2D和3D图形文件。   

    VectorDraw web library (javascript)不仅能打开CAD图纸,而且能显示任何支持HTML5标准平台上的通用矢量对象,如Windows,安卓,iOS和Linux。无需任何安装,VectorDraw web library (javascript)就可以运行在任何支持canvas标签和Javascript的主流浏览器(Chrome, Firefox, Safari, Opera, Dolphin, Boat等等)中。这意味着可以用DXF,DWG,DGN,SKP(Google的Sketchup),VDML等多种格式在任何台式、平板电脑,智能手机和便携式笔记本上展现出你的业务。

    在版本6021中,在vdPolyFace,vdGroundSurface和vdDocument中添加了一个新属性SmoothAngle。

    获取/设置0到90之间的角度,可用于在渲染多面体对象时计算每个面中每个顶点的法线。

    定义最大角度,将其与相邻面的平面之间的角度进行比较,以滤除将在平均计算中添加的平面的法线。

    如果是vdPolyface或vdGroundSurface对象,请将其设置为-1,以便根据vdDocument.SmoothAngle属性平滑法线;将其设置为0,以使法线不平滑;将其设置为90,以便将每个顶点的法线计算为所有相邻面法线的平均值。

                            The original file in Render with SmoothAgle 0

The original file in Render with SmoothAgle 0

                           The original file in Render with SmoothAgle 20

The original file in Render with SmoothAgle 20

                              The original file in Render with SmoothAgle 60

The original file in Render with SmoothAgle 60

                               The original file in Render with SmoothAgle 90

The original file in Render with SmoothAgle 90