Add line count to tests.
This commit is contained in:
parent
96e0081335
commit
040ef5aa77
@ -26,6 +26,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -57,6 +58,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -88,6 +90,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -100,6 +103,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [2, 0, 0],
|
||||
@ -131,6 +135,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -143,6 +148,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [2, 0, 0],
|
||||
@ -155,6 +161,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [2, 2, 0],
|
||||
@ -167,6 +174,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 8,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 2, 0],
|
||||
@ -192,6 +200,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ -1, -1, -1 ], max: [ 1, 1, 1 ] }
|
||||
},
|
||||
@ -201,6 +210,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ 2, -1, -1 ], max: [ 4, 1, 1 ] }
|
||||
},
|
||||
@ -210,6 +220,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ 2, 2, -1 ], max: [ 4, 4, 1 ] }
|
||||
},
|
||||
@ -219,6 +230,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ -1, 2, -1 ], max: [ 1, 4, 1 ] }
|
||||
},
|
||||
@ -228,6 +240,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ -1, -1, 2 ], max: [ 1, 1, 4 ] }
|
||||
},
|
||||
@ -237,6 +250,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ 2, -1, 2 ], max: [ 4, 1, 4 ] }
|
||||
},
|
||||
@ -246,6 +260,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ 2, 2, 2 ], max: [ 4, 4, 4 ] }
|
||||
},
|
||||
@ -255,6 +270,7 @@ describe ('3ds Importer', function() {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 12,
|
||||
uvCount: 8,
|
||||
lineCount : 0,
|
||||
triangleCount: 12,
|
||||
boundingBox: { min: [ -1, 2, 2 ], max: [ 1, 4, 4 ] }
|
||||
}
|
||||
|
||||
@ -45,6 +45,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 1,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 1,
|
||||
boundingBox : {
|
||||
min : [0.0, 0.0, 0.0],
|
||||
@ -102,6 +103,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 24,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [-0.5, -0.5, -0.5],
|
||||
@ -158,6 +160,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 24,
|
||||
normalCount : 24,
|
||||
uvCount : 24,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [-0.5, -0.5, -0.5],
|
||||
@ -214,6 +217,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 24,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [-0.5, -0.5, -0.5],
|
||||
@ -270,6 +274,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 24,
|
||||
uvCount : 24,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [-0.5, -0.5, -0.5],
|
||||
@ -324,6 +329,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 3,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 1,
|
||||
boundingBox : {
|
||||
min : [0.0, 0.0, 0.0],
|
||||
@ -336,6 +342,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 3,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 1,
|
||||
boundingBox : {
|
||||
min : [1.0, 0.0, 0.0],
|
||||
@ -381,6 +388,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 78,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 38,
|
||||
boundingBox : {
|
||||
min: [ -0.6921195564310951, -1.0785199551363698, -5.330651201963446 ],
|
||||
@ -393,6 +401,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 50,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 26,
|
||||
boundingBox : {
|
||||
min: [ 0.8097413778305054, 2.8717148303985596, -5.33065128326416 ],
|
||||
@ -405,6 +414,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 50,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 26,
|
||||
boundingBox : {
|
||||
min: [ -1.1686336994171143, -5.330650806427002, 2.93727445602417 ],
|
||||
@ -417,6 +427,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 78,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 38,
|
||||
boundingBox : {
|
||||
min: [ -0.9557393651589479, -5.330651177643153, -1.06505742884149 ],
|
||||
@ -429,6 +440,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 78,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 38,
|
||||
boundingBox : {
|
||||
min: [ -5.330651171390089, -1.0326269494863676, -0.6059335185163844 ],
|
||||
@ -441,6 +453,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 54,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 26,
|
||||
boundingBox : {
|
||||
min: [ -5.33065128326416, 2.991360902786255, -0.012430161237716675 ],
|
||||
@ -453,6 +466,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 52,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 26,
|
||||
boundingBox : {
|
||||
min: [ -1.3648574352264404, 2.9005930423736572, 4.66934871673584 ],
|
||||
@ -465,6 +479,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 74,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 38,
|
||||
boundingBox : {
|
||||
min: [ -1.009571011381568, -1.074115497823536, 4.669348895549774 ],
|
||||
@ -477,6 +492,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 54,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 26,
|
||||
boundingBox : {
|
||||
min: [ 4.66934871673584, 2.4595587253570557, -2.553251266479492 ],
|
||||
@ -489,6 +505,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 78,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 38,
|
||||
boundingBox : {
|
||||
min: [ 4.669348835945129, -1.0589144181932033, -1.7207290818192755 ],
|
||||
@ -501,6 +518,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 52,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 26,
|
||||
boundingBox : {
|
||||
min: [ 2.8218495845794678, 4.669349193572998, -1.6833229064941406 ],
|
||||
@ -513,6 +531,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 78,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 38,
|
||||
boundingBox : {
|
||||
min: [ -1.0826615032554154, 4.669348806142807, -1.093071740019906 ],
|
||||
@ -525,6 +544,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount: 0,
|
||||
normalCount: 272,
|
||||
uvCount: 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 140,
|
||||
boundingBox : {
|
||||
min: [ -5.000001907348633, -5, -5.000001907348633 ],
|
||||
@ -566,6 +586,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 2,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 2,
|
||||
boundingBox : {
|
||||
min : [-0.5, -0.5, 0.0],
|
||||
@ -603,6 +624,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 2,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 2,
|
||||
boundingBox : {
|
||||
min : [-0.5, -0.5, 0.0],
|
||||
@ -641,6 +663,7 @@ describe ('Gltf Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0.0, 0.0, 0.0],
|
||||
|
||||
@ -507,6 +507,7 @@ describe ('Obj Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 6,
|
||||
uvCount : 4,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -537,6 +538,7 @@ describe ('Obj Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 6,
|
||||
uvCount : 4,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -568,6 +570,7 @@ describe ('Obj Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 6,
|
||||
uvCount : 4,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -599,6 +602,7 @@ describe ('Obj Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 6,
|
||||
uvCount : 4,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -626,6 +630,7 @@ describe ('Obj Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 20,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 20,
|
||||
boundingBox : {
|
||||
min : [-0.85065080835204, -0.85065080835204, -0.85065080835204],
|
||||
|
||||
@ -142,6 +142,7 @@ describe ('Off Importer', function () {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
|
||||
@ -142,6 +142,7 @@ describe ('Ply Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -169,6 +170,7 @@ describe ('Ply Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -196,6 +198,7 @@ describe ('Ply Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -226,6 +229,7 @@ describe ('Ply Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
|
||||
@ -136,6 +136,7 @@ describe ('Stl Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 572,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 572,
|
||||
boundingBox : {
|
||||
min : [0, -1.10792799192095, 0],
|
||||
@ -163,6 +164,7 @@ describe ('Stl Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 728,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 728,
|
||||
boundingBox : {
|
||||
min : [0, -1.1079280376434326, 0],
|
||||
@ -191,6 +193,7 @@ describe ('Stl Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
@ -218,6 +221,7 @@ describe ('Stl Importer', function() {
|
||||
vertexColorCount : 0,
|
||||
normalCount : 12,
|
||||
uvCount : 0,
|
||||
lineCount : 0,
|
||||
triangleCount : 12,
|
||||
boundingBox : {
|
||||
min : [0, 0, 0],
|
||||
|
||||
@ -162,6 +162,7 @@ export function ModelToObjectSimple (model)
|
||||
vertexColorCount : mesh.VertexColorCount (),
|
||||
normalCount : mesh.NormalCount (),
|
||||
uvCount : mesh.TextureUVCount (),
|
||||
lineCount : mesh.LineSegmentCount (),
|
||||
triangleCount : mesh.TriangleCount (),
|
||||
boundingBox : {
|
||||
min : [boundingBox.min.x, boundingBox.min.y, boundingBox.min.z],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user