ply 点云文件格式
来源:互联网 发布:玛芬地图软件 编辑:程序博客网 时间:2024/05/05 08:43
英文版 ply格式 http://paulbourke.net/dataformats/ply/
典型的 PLY 文件结构:
头部
顶点列表
面片列表
(其他元素列表)
头部是一系列以回车结尾的文本行,用来描述文件的剩余部分。头部包含一个对每个元素类型的描述,包括元素名(如“边”),这个元素在工程里有多少,以及一个与这个元素关联的不同属性的列表。头部还说明这个文件是二进制的或者是ASCII的。头部后面的是一个每个元素类型的元素列表,按照在头部中描述的顺序出现。
下面是一个立方体的完整ASCII描述。相同工程的二进制版本头部的唯一不同是用词“binary_little_endian”或者 “binary_big_endian”替换词“ascii”。大括号中的注释不是文件的一部分,它们是这个例子的注解。文件中的注释一般在 “comment”开始的关键词定义行里。
element <元素名> <在文件中的个数>
property <数据类型> <属性名-1>
property <数据类型> <属性名-2>
property <数据类型> <属性名-3>
name type number of bytes---------------------------------------char character 1uchar unsigned character 1short short integer 2ushort unsigned short integer 2int integer 4uint unsigned integer 4float single-precision float 4double double-precision float 8property list <数值类型> <数值类型> <属性名>
这表示属性“vertex_index”首先包含一个非负字符报苏在属性里包含多少索引,接下来是一个列表包含许多整数。在这个边长列表里的每个整数都是一个顶点的索引。
实例:
ply
format ascii 1.0
comment author: Greg Turk
comment object: another cube
element vertex 8
property float x
property float y
property float z
property uchar red { start of vertex color }
property uchar green
property uchar blue
element face 7
property list uchar int vertex_index { number of vertices for each face }
element edge 5 { five edges in object }
property int vertex1 { index to first vertex of edge }
property int vertex2 { index to second vertex }
property uchar red { start of edge color }
property uchar green
property uchar blue
end_header
0 0 0 255 0 0 { start of vertex list }
0 0 1 255 0 0
0 1 1 255 0 0
0 1 0 255 0 0
1 0 0 0 0 255
1 0 1 0 0 255
1 1 1 0 0 255
1 1 0 0 0 255
3 0 1 2 { start of face list, begin with a triangle }
3 0 2 3 { another triangle }
4 7 6 5 4 { now some quadrilaterals }
4 0 4 5 1
4 1 5 6 2
4 2 6 7 3
4 3 7 4 0
0 1 255 255 255 { start of edge list, begin with white edge }
1 2 255 255 255
2 3 255 255 255
3 0 255 255 255
2 0 0 0 0 { end with a single black line }
转自:http://blog.csdn.net/lxfyzx/article/details/4997627
http://blog.csdn.net/lxfyzx/article/details/4997780
- ply 点云文件格式
- ply 点云文件格式
- PLY文件格式
- ply 文件格式
- PLY文件格式
- PLY文件格式
- PLY文件格式
- PLY文件格式及其解析
- ply文件格式详细说明
- ply文件格式详细说明
- .PLY文件格式剖析(一)
- .PLY文件格式剖析(二)
- PLY文件格式剖析
- ply文件格式详细说明
- ply文件格式详细说明
- ply格式点云在PCL中显示
- 点云pcd格式转换成ply格式
- PLY文件格式及其MATLAB读写操作
- linux 的man 中的数字的含义
- Java8新特性小结-接口与Lambda表达式
- 2091 空心三角形
- [MarsZ]程序猿谈大学之大学应该学好哪些课程
- 数据离线缓存与读取
- ply 点云文件格式
- Goldengate辅助数据库进行升级
- HDU Today-SPEA
- C++ outline and interview questions (1): Variable
- 1047 Integer Inquiry
- Oracle 10gRAC<-->Oracle 10g Single Configuration
- 电脑重装系统
- loadrunner12 javascript
- HandleCollisions参数