a polygon file format, developed at Stanford University by Turk et al
STL
a file format native to the stereolithography CAD software created by 3D Systems
OBJ
a geometry definition file format first developed by Wavefront Technologies
X3D
the ISO standard XML-based file format for representing 3D computer graphics data
PCD
Point Cloud Library (PCL)
1.2.1 PLY (多边形集合)
PLY:Polygon File Format
PLY文件:由多边形集合组成的图形对象(Graphical Objects)
两种存储模式
ASCII模式
Binary模式
典型的文件结构
组成元素:顶点列表、面列表
Header
Vertex List
Face List
(lists of other elements)
立方体描述1
ply
format ascii 1.0 {
ascii/binary, format version number }
comment made by Greg Turk {
comments keyword specified, like all lines }
comment this file is a cube
element vertex 8 {
define "vertex" element, 8 of them infile}
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
立方体描述2
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