Extend curves until they intersect

Hi everyone,

I was wondering if anyone could help me with the following issue:
I’m trying to simplify the shape of a room boundary. So far I’ve managed to get to a point where I have a list of curves, which I’d like to extend until they reach an intersection with another curve (in the cases where they don’t intersect yet). I’ve tried PolyCurve.ByJoinedCurves with a larger tolerance, but it doesn’t seem to do the trick.

Also tried a method where I extend them until they surely intersect each other, collect the intersection points and put them in order to create an outline, but I find it difficult to instruct the script to follow L shapes, for instance.



Any suggestions would be very much appreciated!

Hello @de.ge think there are many ways it can be done…something here maybe with springs

2 Likes

Ah, so much simpler than what I was doing before! Thank you very much