gkjohnson/three-bvh-csg

New failure case

Closed this issue · 1 comments

image

const w = 0.45;
const h = 0.45;
const l = 0.45;
const e = ( w + h + l ) / 30;

const b1 = new Brush( new SphereGeometry( 1, 17, 5 ) );
b1.scale.set( l - e, h - e, w + 1e-4 );
b1.updateMatrixWorld();

const b2 = new Brush( b1.geometry );
b2.scale.set( l + 1e-4, h - e, w - e );
b2.updateMatrixWorld();

const evaluator = new Evaluator();
evaluator.debug.enabled = true;

const result = evaluator.evaluate( b1, b2, ADDITION );

Triangle 117 has the issue:

image

And is partially inverted:

image

It looks like the only intersection point is at one vertex:

image