Firstly, I am trying to understand if and how curve torsion is related to the single rail sweep process. Is curve torsion the mathematical explanation for the different result obtained from sweep-1 rail between using roadlike vs. free option?
If so, it would seem that the integral over the (rail) curve of the curve torsion should give the angle between the end section orientations found using the “roadlike” and “free” options.
This attached GH routine tries to model this, and for a pure helix rail curve, the integration result is dead on, but for a more general space curve, there are differences, which I am trying to resolve, if possible. (e.g., does the angle tolerance setting have an effect?)
Secondly, is there a Grasshopper component somewhere that provides a single rail sweep with the “roadlike” constraint option? The only one I found that actually seems to work is a C# script that Dale Fugier posted to (and is buried in) a forum question from a few years ago.
torsion_question.gh (58.1 KB)