-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from AnalyticalGraphicsInc/missing-attributes
Fix parsing faces that reference non-existing attributes
- Loading branch information
Showing
9 changed files
with
189 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
specs/data/box-incomplete-attributes/box-incomplete-normals.obj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
o Cube | ||
v -1.000000 -1.000000 1.000000 | ||
v -1.000000 1.000000 1.000000 | ||
v -1.000000 -1.000000 -1.000000 | ||
v -1.000000 1.000000 -1.000000 | ||
v 1.000000 -1.000000 1.000000 | ||
v 1.000000 1.000000 1.000000 | ||
v 1.000000 -1.000000 -1.000000 | ||
v 1.000000 1.000000 -1.000000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 0.0000 1.0000 | ||
vn 0.000000 0.000000 1.000000 | ||
f 1/1/1 2/2/1 4/3/1 3/4/1 | ||
f 3/5/2 4/6/2 8/7/2 7/8/2 | ||
f 7/9/3 8/10/3 6/11/3 5/12/3 | ||
f 5/13/4 6/14/4 2/15/4 1/16/4 | ||
f 3/5/5 7/17/5 5/18/5 1/16/5 | ||
f 8/19/6 4/6/6 2/15/6 6/20/6 |
34 changes: 34 additions & 0 deletions
34
specs/data/box-incomplete-attributes/box-incomplete-positions.obj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
o Cube | ||
v -1.000000 -1.000000 1.000000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 1.0000 | ||
vt 1.0000 0.0000 | ||
vt 1.0000 1.0000 | ||
vt 0.0000 0.0000 | ||
vt 0.0000 1.0000 | ||
vn -1.0000 0.0000 0.0000 | ||
vn 0.0000 0.0000 -1.0000 | ||
vn 1.0000 0.0000 0.0000 | ||
vn 0.0000 0.0000 1.0000 | ||
vn 0.0000 -1.0000 0.0000 | ||
vn 0.0000 1.0000 0.0000 | ||
f 1/1/1 2/2/1 4/3/1 3/4/1 | ||
f 3/5/2 4/6/2 8/7/2 7/8/2 | ||
f 7/9/3 8/10/3 6/11/3 5/12/3 | ||
f 5/13/4 6/14/4 2/15/4 1/16/4 | ||
f 3/5/5 7/17/5 5/18/5 1/16/5 | ||
f 8/19/6 4/6/6 2/15/6 6/20/6 |
22 changes: 22 additions & 0 deletions
22
specs/data/box-incomplete-attributes/box-incomplete-uvs.obj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
o Cube | ||
v -1.000000 -1.000000 1.000000 | ||
v -1.000000 1.000000 1.000000 | ||
v -1.000000 -1.000000 -1.000000 | ||
v -1.000000 1.000000 -1.000000 | ||
v 1.000000 -1.000000 1.000000 | ||
v 1.000000 1.000000 1.000000 | ||
v 1.000000 -1.000000 -1.000000 | ||
v 1.000000 1.000000 -1.000000 | ||
vt 0.0000 0.0000 | ||
vn -1.0000 0.0000 0.0000 | ||
vn 0.0000 0.0000 -1.0000 | ||
vn 1.0000 0.0000 0.0000 | ||
vn 0.0000 0.0000 1.0000 | ||
vn 0.0000 -1.0000 0.0000 | ||
vn 0.0000 1.0000 0.0000 | ||
f 1/1/1 2/2/1 4/3/1 3/4/1 | ||
f 3/5/2 4/6/2 8/7/2 7/8/2 | ||
f 7/9/3 8/10/3 6/11/3 5/12/3 | ||
f 5/13/4 6/14/4 2/15/4 1/16/4 | ||
f 3/5/5 7/17/5 5/18/5 1/16/5 | ||
f 8/19/6 4/6/6 2/15/6 6/20/6 |
12 changes: 12 additions & 0 deletions
12
specs/data/box-missing-attributes/box-missing-attributes.mtl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Blender MTL File: 'box.blend' | ||
# Material Count: 1 | ||
|
||
newmtl Material | ||
Ns 96.078431 | ||
Ka 0.000000 0.000000 0.000000 | ||
Kd 0.640000 0.640000 0.640000 | ||
Ks 0.500000 0.500000 0.500000 | ||
Ke 0.000000 0.000000 0.000000 | ||
Ni 1.000000 | ||
d 1.000000 | ||
illum 2 |
20 changes: 20 additions & 0 deletions
20
specs/data/box-missing-attributes/box-missing-attributes.obj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Blender v2.78 (sub 0) OBJ File: 'box.blend' | ||
# www.blender.org | ||
mtllib box-missing-attributes.mtl | ||
o Cube | ||
v -1.000000 -1.000000 1.000000 | ||
v -1.000000 1.000000 1.000000 | ||
v -1.000000 -1.000000 -1.000000 | ||
v -1.000000 1.000000 -1.000000 | ||
v 1.000000 -1.000000 1.000000 | ||
v 1.000000 1.000000 1.000000 | ||
v 1.000000 -1.000000 -1.000000 | ||
v 1.000000 1.000000 -1.000000 | ||
usemtl Material | ||
s off | ||
f 1/1/1 2/2/1 4/3/1 3/4/1 | ||
f 3/5/2 4/6/2 8/7/2 7/8/2 | ||
f 7/9/3 8/10/3 6/11/3 5/12/3 | ||
f 5/13/4 6/14/4 2/15/4 1/16/4 | ||
f 3/5/5 7/17/5 5/18/5 1/16/5 | ||
f 8/19/6 4/6/6 2/15/6 6/20/6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters