I'd like to extract the outer path (red line) of A and B circles (or other paths/shapes), and erase all the inner lines, so there would be only one path (perhaps a little bit of a complicated one). Is there any algorithm that could do this easily?
(source: candelalearning.com)
The term you are looking for is bezier path boolean operations
, specifically union
for the case you are presenting (this should help you googling).
Paper.js has a javascript implementation:
You can see the examples here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With