Menu

#381 Face with more than 3 vertices don't have uniform color

v1.0_(example)
open
nobody
None
1
2014-01-27
2014-01-27
Steve
No

When importing a a shape from a PLY file, face color are not apply correctly. It looks like the face is triangulated then color is applied. Each face with more than 3 vertices don't have the same color.

It is expected that the entire face be the same color. Here's a simple shape to demonstrate the issue. It would be expected that this cube be completely red. I attached the result I am seeing.

ply
format ascii 1.0
comment VCGLIB generated
element vertex 8
property float x
property float y
property float z
element face 6
property list uchar int vertex_indices
property uchar red
property uchar green
property uchar blue
property uchar alpha
end_header
0 0 0
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 255 0 0 0
4 1 5 6 2 255 0 0 0
4 4 7 6 5 255 0 0 0
4 0 3 7 4 255 0 0 0
4 3 2 6 7 255 0 0 0
4 0 4 5 1 255 0 0 0

1 Attachments

Discussion


Log in to post a comment.