threejs-slice-geometry
threejs-slice-geometry copied to clipboard
plane from face cuts the opposite side
if I set the plane like this
plane.setFromCoplanarPoints (
someGeometry.vertices[face.a],
someGeometry.vertices[face.b],
someGeometry.vertices[face.c]
);
inner side is cut. I have to use b-a-c order to cut outer side. this is a bit counter-intuitive
I'm not sure either way is intuitive, would be best to have an option for which side to keep.
I guess for me it makes sense because I was cutting with the faces of convex mesh to keep things inside of it; I guess someone with the opposite intention would think differently.
Maybe the function should return both pieces of the mesh.