5

I have a 3D point cloud each with different color/values attribute attached to each vertex of XYZ points.

The Raw data is in simple .txt / csv form in columns i.e x, y, z, V1, V2, V3 and a new line for next point I am trying to use .ply to make images. I want to create a 3D image such as:

this.

What is the appropriate code in ply format to color each surface or vertex based on each of these values? I want to create multiple maps with the same shape but mapping different colors to the surface.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user2488669
  • 51
  • 1
  • 1
  • 2

1 Answers1

10

The PLY format supports vertex color by defining

property uchar red                   
property uchar green
property uchar blue

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

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

songuke
  • 189
  • 1
  • 6