()
| 379 | const p = mat4ApplyPoint(matrix, x, y, z); |
| 380 | positions.push3(p.x, p.y, p.z); |
| 381 | } else { |
| 382 | positions.push3(x, y, z); |
| 383 | } |
| 384 | } |
| 385 | totalVertices += vertexNodes.length; |
| 386 | |
| 387 | let trianglesNode = meshNode.getElementsByTagName('triangles')[0]; |
| 388 | if (!trianglesNode) trianglesNode = meshNode.getElementsByTagNameNS('*', 'triangles')[0]; |
| 389 | if (!trianglesNode) continue; |
| 390 |