Skip to content

Commit

Permalink
Added test for vertex_index
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Pugh committed Aug 19, 2019
1 parent 30f7be0 commit 0169c03
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/data/diamond_ascii_vertex_index.ply
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
ply
format ascii 1.0
comment VCGLIB generated
element vertex 6
property float x
property float y
property float z
property float nx
property float ny
property float nz
property uchar red
property uchar green
property uchar blue
property uchar alpha
element face 8
property list uchar int vertex_index
end_header
0.5 0 0.5 0 -1 0 255 0 0 255
0 0.5 0.5 -1 0 0 255 0 0 255
0.5 0.5 0 0 0 -1 0 255 0 255
1 0.5 0.5 1 0 0 255 0 0 255
0.5 1 0.5 0 1 0 255 0 0 255
0.5 0.5 1 0 0 1 0 0 255 255
3 0 1 2
3 0 3 2
3 3 4 2
3 4 1 2
3 0 1 5
3 0 3 5
3 3 4 5
3 4 1 5
1 change: 1 addition & 0 deletions tests/integration/io/test_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def assert_mesh(data):
@pytest.mark.parametrize("extension,color,mesh", [
(".ply", True, True),
("_ascii.ply", True, True),
("_ascii_vertex_index.ply", True, True),
(".npz", True, True),
(".obj", False, True),
(".off", False, False),
Expand Down

0 comments on commit 0169c03

Please sign in to comment.