Does anyone know how to draw a proper Clothoide (Cornu-Spiral)?
I am particularly interested in the 'flat' bit around the origin, say up to 30 degrees, as this is commonly used as transition element in the geometry of road or track design between straights/and or circular arcs.
I had a look at the Spiral script example, but I fear the implementation of solving elliptical Integrals in QCAD's script language is currently beyond me.
Does anyone have something off the peg? I think it should be sufficient to specify start radius (curvature), end radius, length, and maybe a sample interval to get some sort of polyline approximation.
Thanks in advance for any help.
How to draw a Clothoide?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
-
- Active Member
- Posts: 35
- Joined: Sun Feb 19, 2012 12:56 pm
Re: How to draw a Clothoide?
https://en.wikipedia.org/wiki/Euler_spiral for the math.
Misc\Examples\MathExamples\ExMathSpiral.js as base for a script.
Misc\Examples\MathExamples\ExMathSpiral.js as base for a script.