-
Notifications
You must be signed in to change notification settings - Fork 9
Fixes for Rounded style with ClippedPolygon #116
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
src/curvilinear.jl
Outdated
| !isnothing(idx) && return idx | ||
| return findmin(norm.(p.p[valid_ind] .- px))[2] | ||
| end] | ||
| # Pick the closest to p0 satisfying tolerance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to call cornerindices(p::Vector{<:Point}, p0::Vector{<:Point}; tol) here and then check against or map back to valid indices? I'm nervous about the selection code not being shared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. I just attempted it in 611f726 but it's breaking some tests for me locally, don't merge it just yet.
src/curvilinear.jl
Outdated
| return d < tol ? idx : -1 | ||
| end | ||
| )] | ||
| return isempty(valid_ind) ? Int[] : cornerindices(p.p[valid_ind], p0; tol) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the last part be valid_ind[cornerindices(p.p[valid_ind], p0; tol)]?
…for backwards compatibility
…ethod with selector
07bd8f9 to
fa645d5
Compare
|
Rebased on top of |
gpeairs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes #115 and introduces
selection_toleranceto resolve #114.