JuliaGeometry/Meshes.jl

Can I get information weather 2 tetrahedrons intersenct?

Closed this issue · 1 comments

When I try

tetr_1=Meshes.Tetrahedron(Meshes.Point3(1,1,1),Meshes.Point3(1,2,1),Meshes.Point3(1,1,2),Meshes.Point3(2,2,2))
tetr_2=Meshes.Tetrahedron(Meshes.Point3(1,1,1),Meshes.Point3(1,2,1),Meshes.Point3(2,1,2),Meshes.Point3(2,2,2))

I = Meshes.intersection(tetr_1, tetr_2)

I get

ERROR: StackOverflowError:
Stacktrace:
 [1] intersection(f::Function, g₁::Tetrahedron{3, Float64}, g₂::Tetrahedron{3, Float64}) (repeats 79984 times)
   @ Meshes ~/.julia/packages/Meshes/BrUGO/src/intersections.jl:100

Is there a way to get an idea weather there is any point enclosed by tetr_1 that is also enclosed by tetr_2 ?

Answering on Zulip. We reserve GitHub for issues.