Stereolithography (.stl) 导入/导出
STL 是输出快速原型常用的网格文件格式,它的网格没有颜色、没有贴图座标或其它任何属性资料,它的网格面全部都是三角形,并且网格顶点全部解除熔接。
STL 文件只能包含网格物件,导入 Rhino 后仍然是网格物件,不会转换成 NURBS。
导入
To open, import, insert, and attach a file as a worksession
-
From the File menu, click Open, Insert, Import, or Worksession > Attach.
- In the dialog box, select a supported file type.
- Click
When you open a non-3dm file and save the model, its filename will be the default 3dm filename.
and configure the settings.
STL 导入选项
熔接角度 ___ 度
熔接法线夹角小于这个角度值的网格面。
分割未相接的网格
决定导入网格时是否将未相接但组合在一起的网格分开。
请参考: SplitDisjointMesh.
STL 模型单位
如果 STL 文件有内含单位信息,使用的单位会显示在这里。
Current Rhino units
Displays the units in the current file. This applies only to the Import and Insert commands. The Open command displays Rhino units as None.
If the Rhino file and the file being imported have different units, the imported model geometry will be scaled accordingly.
Always use these settings. Do not show this dialog again.
Saves the current settings and turns off the dialog display.
To turn the message back on
See also: ResetMessageBoxes command.
导出
To save as or export a Rhino model
- On the File menu, click Export Selected or Save As.
- In the dialog box, the Files of type list displays the currently supported file types for export.
- In the Files of type box, select the supported file type.
- In the File name box, select or type a file name.
- Specify what is to be saved.
- If the export can be configured, click the button to specify export settings.
- Mesh file types export NURBS surfaces as meshes either with the specified meshing options, or the document render mesh settings.
Options (For Rhino 3DM only) | |
---|---|
Save small | Though clearing the render meshes makes the file smaller, it will shade and render more slowly the next time you open the file. |
Save geometry only | Saves geometry objects only. No layers, materials, properties, notes, or units settings are saved. This is similar to exporting the objects. A new file is made, but it does not become your active Rhino model. |
Save textures | Embeds external textures used by materials, environments and decals into the model. |
Save plugin data | Saves data attached to objects or the document by plug-in applications. |
公差
原来的物件与为 STL 文件建立的网格之间的最大距离。
Displays a preview of the output.
If you change the settings, click the
button again to refresh the display.详细设置
STL 导出选项
文件类型
二进制
Ascii
导出开放的物件
调整网格
STL 导出警告
如果导出的 STL 网格不是封闭的会弹出警告信息。
一定要导出
保存开放的网格。
STL 网格导出检测
某些快速成型机只能读取完全封闭 (水密) 的 STL 网格文件。
在将模型导出为 STL 文件做昂贵的快速原型输出之前,最好先确定导出的 STL 网格符合快速原型机器的需求。
如何测试网格是否水密
- 组合网格物件。
从概念上来讲,就是将所有的三角面组合成一个大面,但又并不将它们的边缘粘合在一起。(类似于将多个曲面拼接在一起但是又不将它们组合成实体。) - 熔接组合后的网格物件的所有顶点。
在角度公差提示下,输入 180。
角度公差设为 180 度时,Weld 指令会熔接所有重叠的网格顶点。 - 执行 UnifyMeshNormals 指令。
可以将所有三角面的朝向调整一致,也就是说,如果两个三角面公用一个边,它们朝上的方向是一致的。
使用 SelNakedMeshEdgePt 指令检查网格是否还有漏洞。
如果有任何网格顶点被醒目提示,代表网格在该处有漏洞。
避免建立数据量非常大的网格文件
- 您可以使用 Mesh 指令,这个指令与文件属性里的渲染网格转换设定相同。不同之处在于以 Mesh 指令建立的是可以导出的网格。以 Rhino 的曲面物件导出 STL 文件时也有同样的网格转换设定,但通常事先将物件转换成网格,检查后再导出为 STL 文件是比较好的作法。
- 将不同的物件转换成网格的最佳设定并不相同。一开始,您可以取消最大角度与最大长宽比,设定曲面至边缘的最大距离 (网格面边缘中点与曲面之间最大被允许的距离) 为快速原型机器的解析度,大约是 0.005 英寸 (0.125 毫米)。在找出最适合您的模型及快速原型机器的设定值以后,这个流程可能会变成多余的,因为您可能会习惯于使用已验证过的设定值将 NURBS 物件转换为网格。
- 建立网格以后将 NURBS 物件隐藏,使用 FlatShade 指令检视未在视觉上做平滑处理的网格。如果网格看起来不错就可以导出为 STL 文件,如果网格的品质不好可以将它删除,再使用不同的设定建立网格。
- 在设定网格转换选项时最好一次只变更一个设定值,以便比较变更该设定值的影响。如果网格大部分看起来都不错,只有一小部分不好,可以将最大长宽比设为 4 与 7 之间的数值。通常没有必要将曲面至边缘的最大距离设为比快速原型机器解析度还小的数值。