How can I remove certain edges?

How can I remove certain vertical edges, as seen here in the image?

• Just a tip: I don't know what your native language is, but I notice that your questions are usually written in a relatively difficult to understand way. I can recommend this translator: deepl.com Commented May 22, 2022 at 11:06

you can use this node setup:

I just compare whether x and y coordinates of each edge vertex are the same, if yes -> delete that edge.

• Works, Thank You !!! Commented May 22, 2022 at 10:59
• You are welcome!!! Commented May 22, 2022 at 11:08

Chris's answer is flawless, and it works beautifully.

However, if you want to select the edges based on a direction vector (and maybe even define a certain tolerance value), then this solution might be almost a little better. ...at least you even save a whole node ;-)

PS: With Epsilon you define the tolerance, and with the vector $$B$$ the direction.

You can also use this technique to filter any other edge. For example, you can select all vertical edges.

Or you can simply reverse the selection with the Boolean Math node, which will also remove all non-vertical edges:

• Thank You, great solution !!! Commented May 24, 2022 at 7:43