three-bvh-csg icon indicating copy to clipboard operation
three-bvh-csg copied to clipboard

three-mesh-bvh: triangles that meet on an edge return an incorrect edge

Open gkjohnson opened this issue 3 years ago • 2 comments

image

gkjohnson avatar Jun 17 '22 07:06 gkjohnson

Brush1 Tri: 8

			new THREE.Triangle(
				new THREE.Vector3( -0.5, 0.5, 0.5 ),
				new THREE.Vector3( -0.5, -0.5, 0.5 ),
				new THREE.Vector3( 0.5, 0.5, 0.5 ),
			)

Brush2 Tri: 9

			new THREE.Triangle(
				new THREE.Vector3( -1.25, 0.25, 0.5 ),
				new THREE.Vector3( -0.25, 0.25, 0.5 ),
				new THREE.Vector3( -0.25, 1.25, 0.5 ),
			)

gkjohnson avatar Jun 17 '22 18:06 gkjohnson

This is occurring because coplanar results are not supported with the clip. Somewhat alleviated with https://github.com/gkjohnson/three-mesh-bvh/pull/436:

image

gkjohnson avatar Jun 17 '22 18:06 gkjohnson