Hi everybody,

I’m using `Curve|Plane`

intersection to localise cell edges of neighbouring cells that need to be deleted. Another curve (blue) that spans from cell center to cell center determines, which cell edges need to vanish, in order to clear a path.

However, this curve (blue) can’t always be directly intersected with the cell edges, since they are not always intersecting it, depending on the cell orientation (*cf. example 1 vs. example 2*).

Here’s where the plane comes into play! It is constructed at a cell center point, with the direction of the blue line, and the surface normal at the cell center point as axes.

Since the plane intersects all the cell edges, too many get culled (red). My goal is to only get rid of the edges (green) that the blue curve crosses (but not necessarily intersect).

Both examples are extracts of a bigger script that features many cells and a single continues blue line. The cells are evaluated in pairs, like in the examples above, and compared to a single, corresponding segment of the bigger blue line.

Any suggestions?

plane_intersection_problem.gh (26.9 KB)