21 Şubat 2013 Perşembe

PLY Formatı özellikleri

PLY yani Polygon dosya formatı, 3D modellerin saklanması ve import/export işlemleri için oldukça kullanışlı ve basit bir formattır.

PLY formatı iki farklı şekilde binary veya txt olarak saklanabiliyor. Bir çok akademik çalışmada sıklıkla kullanılıyor.

Genel dosya şablonu şu şekilde saklanıyor.

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 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
 

Hiç yorum yok:

Yorum Gönder