GN, how to fillet curve with options based on angle?

Is there a way to change options for the Fillet Curve node based on the angle between the previous and following points? I.e. if angle - how to measure if in the first place? - is <10 degrees, then don’t fillet it, or add resolution segments if angle is above a threshold?

As I suck with geometry nodes, screenshot of how to do it would be nice.

by definition, dot(A,B) = ||A||*||B||*cos(θ)
i.e. dot(A/||A||,B/||B||))=cos(θ)
i.e. θ=arccos(dot(A/||A||,B/||B||))))

(A/||A|| is just A Normalized)

So, you can use Offset Point in Curve to get the vectors around a point and use that to calculate the angle using the above formula:


…and feed a factor of that into the Fillet Curve.

Good luck.

1 Like

Oh wow. Holy hell that was a lot more than I expected. Thanks, Ill give it a try.
Out of curiosity, is there a way to create a fill curve tool in which the first and last curve segments are half the size of the rest and tangent to the ends? So something similar to this mitered bend. Idea being to avoid smoothing along the pipe for the connecting straight section.

Was able to make it work with your node setup. Thank you very much.