()
| 8161 | // Pools |
| 8162 | |
| 8163 | function getNextObjectInPool() { |
| 8164 | |
| 8165 | if ( _objectCount === _objectPoolLength ) { |
| 8166 | |
| 8167 | var object = new THREE.RenderableObject(); |
| 8168 | _objectPool.push( object ); |
| 8169 | _objectPoolLength ++; |
| 8170 | _objectCount ++; |
| 8171 | return object; |
| 8172 | |
| 8173 | } |
| 8174 | |
| 8175 | return _objectPool[ _objectCount ++ ]; |
| 8176 | |
| 8177 | } |
| 8178 | |
| 8179 | function getNextVertexInPool() { |
| 8180 |