Profiles should have Intersect methods similar to polygons.
Describe the solution you'd like
I want to be able to do profile.Intersects(profile) and profile.Intersect(profile) to generate new geometry
Describe alternatives you've considered I tried to get buy with polygons, but it just doesn't work.
I have some code started already, it's similar to the Union pull request done previously
Can you explain the use case a little more? Profile.Intersects() will return whether the profiles interesect, will it not? How does that help in generating geometry?
It doesn't generate geometry directly rather, I have a use for it while determining if two profiles should be unioned. If they don't intersect, I need to not union them (or intersect or difference) and use them separately. The intersects method that takes in another profile should return a new shape where the profiles overlap, with mutual hole regions also appearing as holes in the new profile
On Fri, Aug 30, 2019, 6:31 AM Ian Keough [email protected] wrote:
Can you explain the use case a little more? Profile.Intersects() will return whether the profiles interesect, will it not? How does that help in generating geometry?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hypar-io/Elements/issues/185?email_source=notifications&email_token=ABMZUO3JLHVZDMLZEAI4MOLQHBL6FA5CNFSM4ISEAKKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QDJWQ#issuecomment-526398682, or mute the thread https://github.com/notifications/unsubscribe-auth/ABMZUO64VZW67WBYNJ7LZGTQHBL6FANCNFSM4ISEAKKA .
Profile.Intersection has now existed for a while.