[INST] What it the definition of the TwoHandleCup in threejs? [/INST] function createTwoHandleCup(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) { const cupGeometry = new THREE.CylinderGeometry(2 * size, 2 * size, 5 * size, 32); const handleGeometry = new THREE.TorusGeometry(size, size / 2, 16, 100, Math.PI); const material = new THREE.MeshBasicMaterial({color: color}); const cup = new THREE.Mesh(cupGeometry, material); cup.position.set(position.x, position.y + 2.5 * size, position.z); const handle1 = new THREE.Mesh(handleGeometry, material); handle1.position.set(position.x + 2 * size, position.y + 2.5 * size, position.z); handle1.rotation.set(0, 0, 3*Math.PI / 2); const handle2 = new THREE.Mesh(handleGeometry, material); handle2.position.set(position.x - 2 * size, position.y + 2.5 * size, position.z); handle2.rotation.set(0, 0, Math.PI / 2); scene.add(cup); scene.add(handle1); scene.add(handle2); }
[INST] What it the definition of the ThreeLegTable in threejs? [/INST] function createThreeLegTable(scene, position = {x: 0, y: 0, z: 0}, color = 0x8B4513, size = 1) { const tableTopWidth = 4 * size; const tableTopHeight = 0.2 * size; const tableTopDepth = 3 * size; const legWidth = 0.2 * size; const legHeight = 2 * size; const legDepth = 0.2 * size; const tableTopGeometry = new THREE.BoxGeometry(tableTopWidth, tableTopHeight, tableTopDepth); const legGeometry = new THREE.BoxGeometry(legWidth, legHeight, legDepth); const material = new THREE.MeshBasicMaterial({color: color}); const tableTop = new THREE.Mesh(tableTopGeometry, material); tableTop.position.set(position.x, position.y + legHeight / 2, position.z); const leg1 = new THREE.Mesh(legGeometry, material); leg1.position.set(position.x + tableTopWidth / 2 - legWidth / 2, position.y - legHeight / 2 - tableTopHeight / 2, position.z + tableTopDepth / 2 - legDepth / 2); const leg2 = new THREE.Mesh(legGeometry, material); leg2.position.set(position.x - tableTopWidth / 2 + legWidth / 2, position.y - legHeight / 2 - tableTopHeight / 2, position.z + tableTopDepth / 2 - legDepth / 2); const leg3 = new THREE.Mesh(legGeometry, material); leg3.position.set(position.x + tableTopWidth / 2 - legWidth / 2, position.y - legHeight / 2 - tableTopHeight / 2, position.z - tableTopDepth / 2 + legDepth / 2); scene.add(tableTop); scene.add(leg1); scene.add(leg2); scene.add(leg3);}
[INST] What it the definition of the TwoLidCup in threejs? [/INST] function createTwoLidCup(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) { const cupGeometry = new THREE.CylinderGeometry(2 * size, 2 * size, 5 * size, 32); const lidGeometry = new THREE.CylinderGeometry(2 * size, 2 * size, size / 2, 32); const material = new THREE.MeshBasicMaterial({color: color}); const cup = new THREE.Mesh(cupGeometry, material); cup.position.set(position.x, position.y + 2.5 * size, position.z); const lidTop = new THREE.Mesh(lidGeometry, material); lidTop.position.set(position.x, position.y + 5 * size + size / 2, position.z); // Make the top lid higher lidTop.rotation.x = Math.PI / 2; const lidBottom = new THREE.Mesh(lidGeometry, material); lidBottom.position.set(position.x, position.y - size / 4, position.z); // Make the bottom lid lower lidBottom.rotation.x = Math.PI / 2; scene.add(cup); scene.add(lidTop); scene.add(lidBottom);}
[INST] What it the definition of the PerfumeBottle in threejs? [/INST] function createPerfumeBottle(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) { const bottleBottomGeometry = new THREE.CylinderGeometry(2 * size, 3 * size, 4 * size, 32); const bottleTopGeometry = new THREE.CylinderGeometry(1 * size, 2 * size, 2 * size, 32); const bottleNeckGeometry = new THREE.CylinderGeometry(1 * size, 1 * size, 1 * size, 32); const material = new THREE.MeshBasicMaterial({color: color}); const bottleBottom = new THREE.Mesh(bottleBottomGeometry, material); bottleBottom.position.set(position.x, position.y, position.z); const bottleTop = new THREE.Mesh(bottleTopGeometry, material); bottleTop.position.set(position.x, position.y + 3 * size, position.z); const bottleNeck = new THREE.Mesh(bottleNeckGeometry, material); bottleNeck.position.set(position.x, position.y + 4.5 * size, position.z); scene.add(bottleBottom); scene.add(bottleTop); scene.add(bottleNeck);}
[INST] What it the definition of the WaterKettle in threejs? [/INST] function createWaterKettle(scene, position = {x: 0, y: 0, z: 0}, color = 0xaaaaaa, size = 1) { const kettleBodyGeometry = new THREE.CylinderGeometry(3 * size, 3 * size, 6 * size, 32); const handleGeometry = new THREE.TorusGeometry(3 * size, size / 4, 16, 100, Math.PI); const spoutGeometry = new THREE.CylinderGeometry(size, 2 * size, 3 * size, 32); const material = new THREE.MeshBasicMaterial({color: color}); const kettleBody = new THREE.Mesh(kettleBodyGeometry, material); kettleBody.position.set(position.x, position.y, position.z); const handle = new THREE.Mesh(handleGeometry, material); handle.position.set(position.x, position.y, position.z + 3 * size); handle.rotation.set(0, Math.PI / 2, 0); const spout = new THREE.Mesh(spoutGeometry, material); spout.position.set(position.x + 3 * size, position.y, position.z); spout.rotation.z = Math.PI / 2; scene.add(kettleBody); scene.add(handle); scene.add(spout);}