diff options
[OKG/P05] Finished Ex 04 and did exercises 05 and 06
1 files changed, 4 insertions, 1 deletions
| -rw-r--r-- | Year 2/Computer Graphics Fundamentals/05-Practice-31.10.2022/04.js | 5 |
diff --git a/Year 2/Computer Graphics Fundamentals/05-Practice-31.10.2022/04.js b/Year 2/Computer Graphics Fundamentals/05-Practice-31.10.2022/04.js index f06ceb1..b41e1a8 100644 --- a/Year 2/Computer Graphics Fundamentals/05-Practice-31.10.2022/04.js +++ b/Year 2/Computer Graphics Fundamentals/05-Practice-31.10.2022/04.js @@ -20,12 +20,15 @@ var circle = new THREE.Mesh(new THREE.CylinderGeometry( 20, 20, 1/2, 80 ), mater var cone1 = new THREE.Mesh(new THREE.CylinderGeometry(0.1, 10, 10, 64, 16), material); cone1.rotation.z = Math.PI / 2; +cone1.position.y = -2; var cone2 = new THREE.Mesh(new THREE.CylinderGeometry(0.1, 10, 10, 64, 16), material); cone2.position.x = -10; -cone2.rotation.z = Math.PI / 2; +cone2.position.y = -2; +cone2.rotation.z = -Math.PI / 2; var csg = new CSG(); csg.union([cone1, cone2]); +csg.intersect([circle]); var hype = csg.toMesh(); hype.material = material; |
