Tree model generator for THREE.js