ply补全为立方体_ply 点云文件格式
英文版 ply格式?http://paulbourke.net/dataformats/ply/
典型的 ? PLY ? 文件結構:頭部頂點列表面片列表(其他元素列表)
頭部是一系列以回車結尾的文本行,用來描述文件的剩余部分。頭部包含一個對每個元素類型的描述,包括元素名(如“邊”),這個元素在工程里有多少,以及一個與這個元素關聯的不同屬性的列表。頭部還說明這個文件是二進制的或者是ASCII的。頭部后面的是一個每個元素類型的元素列表,按照在頭部中描述的順序出現。
下面是一個立方體的完整ASCII描述。相同工程的二進制版本頭部的唯一不同是用詞“binary_little_endian”或者 ? “binary_big_endian”替換詞“ascii”。大括號中的注釋不是文件的一部分,它們是這個例子的注解。文件中的注釋一般在 ? “comment”開始的關鍵詞定義行里。
elementpropertypropertyproperty
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
property ? 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 点云文件格式的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: qq个性签名孤独伤感
- 下一篇: 做一次热玛吉一般要多少钱?成美能做吗?贵