stlread
说明
[
返回 TR
,fileformat
,attributes
,solidID
] = stlread(filename
)filename
的文件格式、属性(文件为二进制时)以及实体标识号(文件为文本时)。
示例
输入参数
filename
— STL 文件名
字符向量 | 标量 string
STL 文件名,指定为字符向量或标量 string
。文件名必须以 .stl
或 .STL
扩展名结尾。如果文件包含退化三角形,则 stlread
会自动删除它们。
示例: 'stltextfile.stl'
输出参数
TR
— 三角剖分
triangulation
对象
三角剖分,以 triangulation
对象形式返回。
fileformat
— 文件格式
'binary'
| 'text'
文件格式,以 'binary'
或 'text'
返回。
attributes
— 二进制属性
uint16
向量
二进制属性,以 uint16
向量形式返回。当输入文件是二进制时,attributes
包含有关三角形的编码信息。它的长度等于三角剖分中的三角形数量。如果输入文件是文本文件,则 attributes
是空数组。
solidID
— 实体分组索引
向量
实体分组索引,以标识号的向量形式返回。当输入文件是文本文件时,标识号将每个三角形分配到三角剖分中的一个三角形分组中。当输入文件是二进制时,solidID
包含所有文件。solidID
的长度等于三角剖分中的三角形数。
数据类型: double
版本历史记录
在 R2018b 中推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)