- fixed a bug with OBJReader that prevented the material color to be loaded correctly
- added a corresponding unittest Thanks for the patch by Karthik Nathan closes #1473 git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@823 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
4
src/Unittests/TestFiles/square_material.mtl
Normal file
4
src/Unittests/TestFiles/square_material.mtl
Normal file
@@ -0,0 +1,4 @@
|
||||
newmtl Colored
|
||||
Ka 0.500 0.500 0.500
|
||||
Kd 0.500 0.500 0.500
|
||||
Ks 0.500 0.500 0.500
|
||||
13
src/Unittests/TestFiles/square_material.obj
Normal file
13
src/Unittests/TestFiles/square_material.obj
Normal file
@@ -0,0 +1,13 @@
|
||||
mtllib square_material.mtl
|
||||
|
||||
v 0.000000 2.000000 0.000000
|
||||
v 0.000000 0.000000 0.000000
|
||||
v 2.000000 0.000000 0.000000
|
||||
v 2.000000 2.000000 0.000000
|
||||
vt 0.000000 1.000000 0.000000
|
||||
vt 0.000000 0.000000 0.000000
|
||||
vt 1.000000 0.000000 0.000000
|
||||
vt 1.000000 1.000000 0.000000
|
||||
|
||||
usemtl Colored
|
||||
f 1/1 2/2 3/3 4/4
|
||||
Reference in New Issue
Block a user