PLY文件格式
文件格式
2023-09-14 09:00:00 时间
PLY(Polygon File Format)多边形文件格式(斯坦福三角格式),表示3D文件格式,用于存储描述为多边形集合的图形对象
PLY文件格式有
ASCII:用于轻松启动
二进制格式:用于紧凑存储和快速保存和加载
PLY文件的结构
Header
Vertex List
Face List
(lists of other elements)
eg:
ply format ascii 1.0 { ascii/binary, format version number } comment this file is a cube element vertex 8 { define "vertex" element, 8 of them in file } property float x { vertex contains float "x" coordinate } property float y { y coordinate is also a vertex property } property float z { z coordinate, too } element face 6 { there are 6 "face" elements in the file } property list uchar int vertex_index { "vertex_indices" is a list of ints } end_header { delimits the end of the header } 0 0 0 { start of vertex list } 0 0 1 0 1 1 0 1 0 1 0 0 1 0 1 1 1 1 1 1 0 4 0 1 2 3 { start of face list } 4 7 6 5 4 4 0 4 5 1 4 1 5 6 2 4 2 6 7 3 4 3 7 4 0
说明:
注解 {……}
元素描述
element <元素名> <在文件里的个数> property <数据类型> <属性名-1> property <数据类型> <属性名-2> ……
属性的数据类型
#Name | #Type | #Number of Bytes char | character | 1 uchar | unsigned character | 1 short | short integer | 2 ushort | unsigned short integer | 2 int | Integer | 4 uint | unsigned Integer | 4 float | single-precision float | 4 double | double precision float | 8
http://paulbourke.net/dataformats/ply/
相关文章
- HEX文件格式_hex是什么格式文件
- html文件怎么转换成word文件_word转换成网页文件格式不对
- 【音频处理】WAV 文件格式分析 ( 逐个字节解析文件头 | 相关字段的计算公式 )
- 【BLE MIDI】MIDI 文件格式分析总结 ★★★
- 【Android 逆向】ELF 文件格式 ( ELF 文件头 | ELF 文件头标志 | ELF 文件位数 | ELF 文件大小端格式 )
- Linux_生物信息学常见文件格式
- C1128节数超过对象文件格式限制: 请使用 /bigobj 进行编译详解编程语言
- 如何将Linux文件转换格式(修改linux文件格式)
- 梵蒂冈图书馆用开源文件格式存档历史
- RAR是一种专利文件格式,用于数据压缩与归档打包.
- MySQL中的FRM文件保存表结构的重要文件格式(mysql中frm文件)
- 转换借助Redis集群实现高效文件格式转换(redis集群文件格式)
- php下把数组保存为文件格式的实例应用