I'm working with a complex object, specifically a box, and I need to dynamically cut it. Here is a basic example in this jsFiddle:jsFiddle
Experimenting with a simple plane
var plane = new THREE.Mesh( geometry, material3 );
plane.rotation.x = 1.3; // -Math.PI / 2;
gui.add(plane.rotation, "x", 0.1, Math.PI / 2).name("angle");
gui.add(plane.position, "y", -1, 1).name("h");
scene.add( plane );
I want to remove the top part of my object, similar to slicing off a piece from an apple. The plane acts as the cutting tool: In this scenario, you can use two controls to adjust the position and angle of the plane.
https://i.sstatic.net/3qiB3.png
Could anyone assist me in concealing the portion of the object that has been removed?