- PLY Reader/Writer: Support for face colors (Thanks to Steve and Barb Demlow for the patch)

This commit is contained in:
Jan Möbius
2019-02-21 12:49:56 +01:00
parent a63cbdb10e
commit 3fbc166201
7 changed files with 362 additions and 30 deletions

View File

@@ -0,0 +1,33 @@
ply
format ascii 1.0
comment VCGLIB generated
element vertex 8
property float x
property float y
property float z
element face 12
property list uchar int vertex_indices
property float red
property float green
property float blue
end_header
-1 -1 -1
1 -1 -1
1 1 -1
-1 1 -1
-1 -1 1
1 -1 1
1 1 1
-1 1 1
3 0 1 2 0.419608 0.462745 0.698039
3 0 2 3 1.0 0.552941 0.419608
3 5 4 7 0.698039 1.0 0.619608
3 5 7 6 0.419608 1.0 0.529412
3 6 2 1 0.643137 0.419608 0.698039
3 6 1 5 0.643137 0.419608 1.0
3 3 7 4 0.698039 0.552941 1.0
3 3 4 0 1.0 0.552941 0.419608
3 7 3 2 0.419608 0.698039 1.0
3 7 2 6 0.419608 0.698039 0.529412
3 5 1 0 1.0 0.419608 1.0
3 5 0 4 0.698039 1.0 1.0