Find 180° points in a 2d curve

Hi, I have a 2d curve and would like to eliminate all points which aren’t necessary for vector graphics, i.e. points of which the meeting edges have an exact 180° angle. Any idea? “Edge angle” only works with faces; I started to try to do an extrusion but that messes up things.

resample curve?

1 Like

with this node setup:

on the right side you see the “original curve”. On the left side the “optimized” curve.

The node tree just compare 3 vertices. If the normalized vectors from vec1 to vec2 is the same as vec2 to vec3, vec2 can be deleted.

result:

optimize curve

2 Likes

Great. Excatly what I was looking for. Thank you <3

1 Like

glad i could help

1 Like