threejs-slice-geometry icon indicating copy to clipboard operation
threejs-slice-geometry copied to clipboard

plane from face cuts the opposite side

Open makc opened this issue 7 years ago • 3 comments

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

makc avatar Jul 29 '17 15:07 makc

I'm not sure either way is intuitive, would be best to have an option for which side to keep.

tdhooper avatar Dec 19 '17 22:12 tdhooper

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.

makc avatar Dec 19 '17 23:12 makc

Maybe the function should return both pieces of the mesh.

KonradLinkowski avatar May 04 '21 10:05 KonradLinkowski