|
|
|
@ -345,13 +345,10 @@ Shadings.Mesh = (function MeshClosure() {
@@ -345,13 +345,10 @@ Shadings.Mesh = (function MeshClosure() {
|
|
|
|
|
|
|
|
|
|
reader.align(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var psPacked = new Int32Array(ps); |
|
|
|
|
|
|
|
|
|
mesh.figures.push({ |
|
|
|
|
type: 'triangles', |
|
|
|
|
coords: psPacked, |
|
|
|
|
colors: psPacked |
|
|
|
|
coords: new Int32Array(ps), |
|
|
|
|
colors: new Int32Array(ps), |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -366,13 +363,10 @@ Shadings.Mesh = (function MeshClosure() {
@@ -366,13 +363,10 @@ Shadings.Mesh = (function MeshClosure() {
|
|
|
|
|
coords.push(coord); |
|
|
|
|
colors.push(color); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var psPacked = new Int32Array(ps); |
|
|
|
|
|
|
|
|
|
mesh.figures.push({ |
|
|
|
|
type: 'lattice', |
|
|
|
|
coords: psPacked, |
|
|
|
|
colors: psPacked, |
|
|
|
|
coords: new Int32Array(ps), |
|
|
|
|
colors: new Int32Array(ps), |
|
|
|
|
verticesPerRow: verticesPerRow |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|