I would like to cut through a model with a plane and get a resultant outline of the model where the plane slices through it. For example if I use a plane to slice the corner off of a cube I expect to see a line in the shape of a triangle.
How do I do this in Three.js ? I am used to doing this in tools that provide access to the points, triangles and triangle edges. However, I do not know yet how to do this correctly in Three.js. I’m hoping someone can point me in the right direction(or tell me it can’t be done). It appears that in Three.js they really don’t want you to have access to basic mesh elements. Or I’m looking in all the wrong places.
I’m hoping there is a way to walk through the triangles such that I can walk from one triangle to the next adjacent triangle depending on the line segment. Unless there is an easier way.