Skip to content

Conversation

@anischelly26
Copy link

This PR updates the logic in Frustum.intersectsBox to avoid false positives when a box is exactly touching the frustum plane.

Before:
The check used < which could mistakenly return true if a box was perfectly aligned with the outside of the frustum.

After:
Changed to <= for stricter comparison, which prevents this case.

Related issue:
Closes #27756

@Mugen87
Copy link
Collaborator

Mugen87 commented Apr 20, 2025

#30914 (comment)

@mrdoob Do you mind blocking this user? It seems it's a spammer and consistently ignores staff feedback.

@Mugen87 Mugen87 closed this Apr 20, 2025
@mrdoob
Copy link
Owner

mrdoob commented Apr 21, 2025

Done 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frustum: IntersectsBox function can produce incorrect results

3 participants