()
| 7047 | // Pools |
| 7048 | |
| 7049 | function getNextObjectInPool() { |
| 7050 | |
| 7051 | if ( _objectCount === _objectPoolLength ) { |
| 7052 | |
| 7053 | var object = new THREE.RenderableObject(); |
| 7054 | _objectPool.push( object ); |
| 7055 | _objectPoolLength ++; |
| 7056 | _objectCount ++; |
| 7057 | return object; |
| 7058 | |
| 7059 | } |
| 7060 | |
| 7061 | return _objectPool[ _objectCount ++ ]; |
| 7062 | |
| 7063 | } |
| 7064 | |
| 7065 | function getNextVertexInPool() { |
| 7066 |