且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

以层格式为顶点添加颜色

更新时间:2023-01-27 08:47:29

PLY格式通过定义来支持顶点颜色

The PLY format supports vertex color by defining

property uchar red                   
property uchar green
property uchar blue

标题中的

.可以在每个顶点坐标之后添加[0,255]中的RGB值.

in the header. The RGB values in [0, 255] can be added after each vertex coordinates.

如果要定义附加到每个顶点的多个颜色值,请使用用户定义的元素.在此处查看示例: http://paulbourke.net/dataformats/ply/

If you want to define multiple color values attached to each vertex, use user-defined elements. See examples here: http://paulbourke.net/dataformats/ply/