-
Notifications
You must be signed in to change notification settings - Fork 7
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
No intersection detected for coplanar triangles #3
Comments
minitoine
added a commit
that referenced
this issue
Aug 1, 2022
Found a coplanar case where intersection is not detected: import { Triangle, Vector3 } from 'three'
import { trianglesIntersect, Intersection } from 'fast-triangle-triangle-intersection'
const t1 = new Triangle(
new Vector3(0, 0, 0),
new Vector3(0, 0, 8),
new Vector3(8, 0, 0)
)
const t2 = new Triangle(
new Vector3(2, 0, 2),
new Vector3(1, 0, 4),
new Vector3(9, 0, 0)
)
const intersection = trianglesIntersect(t1, t2)
console.log('Intersection.Coplanar', intersection === Intersection.Coplanar) |
Please don't comment on a closed issue. I will open one for you (#4). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Specific case where coplanar triangles do not trigger an intersection
T1:
(-1.000,0.000,0.000),(2.000,0.000,-2.000),(2.000,0.000,2.000)
T2:
(0.551,0.000,-0.796),(1.224,0.000,0.326),(3.469,0.000,1.000)
The text was updated successfully, but these errors were encountered: