-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I'm not surprised that taking the intersection of a polygon with a primitive shape like a ball is not supported, since that's more in the realm of constructive solid geometry, but it might be nice if we could get a method error (or some other error) instead of a stack overflow:
julia> c = Ball(Point(0, 0), 1.0)
Ball{2,Float64}(Point(0.0, 0.0), 1.0))
julia> t = Triangle(Point(0, 0), Point(2, 0), Point(0, 2))
Triangle{2,Float64}
└─Point(0.0, 0.0)
└─Point(2.0, 0.0)
└─Point(0.0, 2.0)
julia> t ∩ c
ERROR: StackOverflowError:
Stacktrace:
[1] intersecttype(f::Function, g1::Ball{2, Float64}, g2::Triangle{2, Float64, SVector{3, Point2}}) (repeats 79984 times)
@ Meshes ~/.julia/packages/Meshes/6EgDO/src/intersections.jl:37
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request