PLY文件格式
PLY(Polygon File Format)多边形文件格式(斯坦福三角格式),表示3D文件格式,用于存储描述为多边形集合的图形对象
PLY文件格式有
ASCII:用于轻松启动
二进制格式:用于紧凑存储和快速保存和加载
PLY文件的结构
Header
Vertex List
Face List
(lists of other elements)
eg:
ply format ascii 1.0 { ascii/binary, format version number } 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
说明:
注解 {……}
元素描述
element <元素名> <在文件里的个数> property <数据类型> <属性名-1> property <数据类型> <属性名-2> ……
属性的数据类型
#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
http://paulbourke.net/dataformats/ply/
分类:
3D
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)