Add hierarchical 3ds test file.
This commit is contained in:
parent
b90425e247
commit
a79f2ce5ee
BIN
test/testfiles/3ds/cube.png
Normal file
BIN
test/testfiles/3ds/cube.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
BIN
test/testfiles/3ds/cube_hierarchy.3ds
Normal file
BIN
test/testfiles/3ds/cube_hierarchy.3ds
Normal file
Binary file not shown.
@ -97,7 +97,7 @@ describe ('3ds Importer', function() {
|
|||||||
min : [2, 0, 0],
|
min : [2, 0, 0],
|
||||||
max : [3, 1, 1]
|
max : [3, 1, 1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
done ();
|
done ();
|
||||||
@ -160,10 +160,87 @@ describe ('3ds Importer', function() {
|
|||||||
min : [0, 2, 0],
|
min : [0, 2, 0],
|
||||||
max : [1, 3, 1]
|
max : [1, 3, 1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
done ();
|
done ();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it ('cube_hierarchy.3ds', function (done) {
|
||||||
|
testFiles.Import3dsFile ('cube_hierarchy.3ds', function (model) {
|
||||||
|
assert (OV.CheckModel (model));
|
||||||
|
assert.deepStrictEqual (testUtils.ModelToObjectSimple (model), {
|
||||||
|
name: '',
|
||||||
|
materials: [ { name: 'c_tex' }, { name: 'c_red' }, { name: 'c_blue' } ],
|
||||||
|
meshes: [
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ -1, -1, -1 ], max: [ 1, 1, 1 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ 2, -1, -1 ], max: [ 4, 1, 1 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ 2, 2, -1 ], max: [ 4, 4, 1 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ -1, 2, -1 ], max: [ 1, 4, 1 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ -1, -1, 2 ], max: [ 1, 1, 4 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ 2, -1, 2 ], max: [ 4, 1, 4 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ 2, 2, 2 ], max: [ 4, 4, 4 ] }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Cube',
|
||||||
|
vertexCount: 8,
|
||||||
|
normalCount: 12,
|
||||||
|
uvCount: 8,
|
||||||
|
triangleCount: 12,
|
||||||
|
boundingBox: { min: [ -1, 2, 2 ], max: [ 1, 4, 4 ] }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
done ();
|
||||||
|
});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user