diagrams / diagrams-contrib

User-contributed extensions to diagrams
BSD 3-Clause "New" or "Revised" License
27 stars 31 forks source link

Major rewrite of InterectionExtras #80

Closed bacchanalia closed 5 years ago

bacchanalia commented 5 years ago

I discovered Diagrams.Parametric and diagrams-lib issue #317 since the first version of IntersectionExtras. This rewrite makes makes intersectParams more useful to use with Diagrams.Parametric and also makes use of the parametrization of Trails rather than just segments. I also added the cutBy class of functions as a more flexible general way to section paths/trails than explodeIntersections. Finally I replaced onExploded* with the more general onSections.

Note: This relies on my latests PRs to diagrams-lib.

bacchanalia commented 5 years ago

I'm thinking of some more high level operations I might want to add. Could possibly go in this PR or another PR.

byorgey commented 5 years ago

Sorry I didn't get a chance to look at this until now!