Brep offset

There are two lines that form a certain zone or region. There is a brep, which borders the zone, but beyond its aisles. I need the grasshopper to understand what position the brep is in and automatically move the brep to the green zone if the brep is outside. That is, if a brep outside the zone is “false” - he must change his position to “true”. If the brep is in the “true” zone, it remains in its place.

№1.3dm (38.7 KB) № (1.4 KB)

Something like this?

№ (9.8 KB)

1 Like


if I need the edge of the brep always to be adjacent to the edge of the line to which it originally belonged?

№ (14.2 KB)

1 Like

Thank you so much