Tests for ply reader with and without normals, ascii mode

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@477 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Jan Möbius
2011-12-01 16:54:11 +00:00
parent 64f70809ad
commit 7d092c7465
3 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
ply
format ascii 1.0
element vertex 8
property float32 x
property float32 y
property float32 z
property float32 nx
property float32 ny
property float32 nz
element face 6
property list uint8 int32 vertex_indices
end_header
-1 -1 -1 0.0 0.0 1.0
1 -1 -1 0.0 1.0 0.0
1 1 -1 0.0 1.0 1.0
-1 1 -1 1.0 0.0 0.0
-1 -1 1 1.0 0.0 1.0
1 -1 1 1.0 1.0 0.0
1 1 1 1.0 1.0 1.0
-1 1 1 1.0 1.0 2.0
4 0 1 2 3
4 5 4 7 6
4 6 2 1 5
4 3 7 4 0
4 7 3 2 6
4 5 1 0 4

View File

@@ -0,0 +1,23 @@
ply
format ascii 1.0
element vertex 8
property float32 x
property float32 y
property float32 z
element face 6
property list uint8 int32 vertex_indices
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
4 0 1 2 3
4 5 4 7 6
4 6 2 1 5
4 3 7 4 0
4 7 3 2 6
4 5 1 0 4