Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Planar faces failure #185

Closed
gkjohnson opened this issue Dec 5, 2023 · 1 comment · Fixed by #189
Closed

Planar faces failure #185

gkjohnson opened this issue Dec 5, 2023 · 1 comment · Fixed by #189
Labels
bug Something isn't working
Milestone

Comments

@gkjohnson
Copy link
Owner

Related to #163

Using the coplanar hit side check every time provides a correct result. The triangles must not be being marked as coplanar?

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

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

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

const evaluator = new Evaluator();
const result = evaluator.evaluate( b1, b2, ADDITION );
@gkjohnson gkjohnson added the bug Something isn't working label Dec 5, 2023
@gkjohnson gkjohnson added this to the v0.0.16 milestone Dec 5, 2023
@gkjohnson
Copy link
Owner Author

It seems as though the coplanar triangles are not being detected as intersecting?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant