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

Different results when intersect identical triangles. #655

Open
ColichevAV opened this issue Apr 8, 2024 · 2 comments
Open

Different results when intersect identical triangles. #655

ColichevAV opened this issue Apr 8, 2024 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@ColichevAV
Copy link

ColichevAV commented Apr 8, 2024

Hi! I am having an issue with the intersectTriangle function. I have two triangles that do not intersect visually, but when I call the intersectTriangle function on them, it returns different results. Thank you for your work!
image

const triangle1 = new ExtendedTriangle(
        new Vector3(32.22699737548828, 1.2630000114440918, -11.8149995803833),
        new Vector3(31.316997528076172, 1.2630000114440918, -11.739999771118164),
        new Vector3(32.22699737548828, 1.2630000114440918, -11.739999771118164)
)
const triangle2 = new ExtendedTriangle(
        new Vector3(31.316997528076172, 1.933000087738037, -7.585000038146973),
        new Vector3(31.316997528076172, -0.8669999837875366, -7.295000076293945),
        new Vector3(31.316997528076172, -0.8669999837875366, -7.585000038146973)
 )

triangle1.intersectsTriangle(triangle2) is true
triangle2.intersectsTriangle(triangle1) is false
@ColichevAV ColichevAV added the bug Something isn't working label Apr 8, 2024
@gkjohnson gkjohnson added this to the v0.x.x milestone Apr 9, 2024
@gkjohnson
Copy link
Owner

Hello! Thanks for the report. I won't have a lot of time to investigate this but if you'd like to take a look an make a PR, this is the function to take a look at. I'm happy to answer any questions you may have about the implementation.

@ColichevAV
Copy link
Author

Ok), I'll take a look at it.

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

No branches or pull requests

2 participants