PLY是一種三維mesh模型數(shù)據(jù)格式,全名為多邊形檔案(Polygon File Format)或 斯坦福三角形檔案(Stanford Triangle Format)。
該格式主要用以儲存立體掃描結(jié)果的三維數(shù)值,通過多邊形片面的集合描述三維物體,與其他格式相較之下這是較為簡單的方法。它可以儲存的信息包含顏色、透明度、表面法向量、材質(zhì)座標(biāo)與信息的可信度,并能對多邊形的正反兩面設(shè)定不同的屬性。
在數(shù)據(jù)內(nèi)容的儲存上PLY有兩種版本,分別是純文字(ASCII)版本與二進(jìn)制(binary)版本,其差異在儲存時是否以ASCII編碼表示元素信息。文章來源:http://www.zghlxwxcb.cn/news/detail-742917.html
ply文件的基本格式如下:從ply到end_header是頭部,element可以有多個property,例如vertex可以有xyz三個property。文章來源地址http://www.zghlxwxcb.cn/news/detail-742917.html
ply
format ascii 1.0 { ascii/binary, 編碼類型 }
comment zipper output
comment modified by flipply { comments keyword specified, like all lines }
element vertex 35947 { 定義 "vertex" 元素, 35947 代表這個文件有35947個頂點信息 }
property float32 x { vertex contains float "x" coordinate }
property float32 y { y coordinate is also a vertex property }
property float32 z { z coordinate, too }
property float32 confidence
property float32 intensity
element f
到了這里,關(guān)于ply文件格式介紹和讀取的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!