<p dir="auto">I'm trying to use the new (introduced in r70 with <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/mrdoob/three.js/commit/d4334724b0207d28ceb3495eece1fd7ab35bfee9/hovercard" href="https://github.com/mrdoob/three.js/commit/d4334724b0207d28ceb3495eece1fd7ab35bfee9"><tt>d433472</tt></a>) <code class="notranslate">THREE.BufferGeometry.prototype.merge()</code> functionality on buffer geometries created with <code class="notranslate">THREE.PlaneBufferGeometry</code> but I'm getting this error during the subsequent render call (the merging itself does not throw an error):</p>
<p dir="auto"><code class="notranslate">Uncaught TypeError: Cannot read property 'array' of undefined</code> (in Chrome) or<br>
<code class="notranslate">TypeError: this.attributes.position is undefined</code> (in Firefox)<br>
at <a href="https://github.com/mrdoob/three.js/blob/r70/src/core/BufferGeometry.js#L301">this line</a> in <code class="notranslate">THREE.BufferGeometry.prototype.computeBoundingSphere()</code>:</p>
<p dir="auto">I was able to reduce the test case to a simple scene where I try to merge all 6 faces of a cube into a single <code class="notranslate">THREE.BufferGeometry</code>. Here is a jsfiddle of how it should look using normal non buffer geometries <a href="http://jsfiddle.net/3vwj3rj1/" rel="nofollow">http://jsfiddle.net/3vwj3rj1/</a> and here is the jsfiddle for the same scene using buffer geometries throwing the error: <a href="http://jsfiddle.net/3vwj3rj1/1/" rel="nofollow">http://jsfiddle.net/3vwj3rj1/1/</a> .</p>
<p dir="auto">Using the Java Script debugger it looks like that <code class="notranslate">THREE.BufferGeometry.prototype.merge()</code> does not have copied the attributes at all.</p>
<p dir="auto"><em>I opened <a href="http://stackoverflow.com/questions/28870492/three-js-r70-issues-merging-three-planebuffergeometries" rel="nofollow">this stackoverflow question</a> about the same issue</em></p>
<p dir="auto">Edit: I think I somehow understand the problem now: <code class="notranslate">THREE.BufferGeometry.prototype.merge()</code> doesn't take care of resizing the buffer attributes at all and I should do something like this <a href="http://jsfiddle.net/3vwj3rj1/3/" rel="nofollow">http://jsfiddle.net/3vwj3rj1/3/</a> , but I still have no idea what to do with the index attribute.</p>
<p dir="auto">Was there a significant change in the GLTFLoader in version 90? We're having problems with gltf/glb files that we export from Paraview, the colors are not visible in our viewer. If changing the version to version 89, the colors are visible. Here is an example file:<br>
<a href="https://github.com/mrdoob/three.js/files/3619423/005.zip">005.zip</a></p>