hackl / TikZ-StructuralAnalysis

TikZ Library for Structural Analysis
Other
123 stars 29 forks source link

Use a fake spiral for torsion spring. Add CW variant. #12

Closed agmartin2 closed 6 years ago

agmartin2 commented 6 years ago

Hi,

Here goes a PR with a proposal for the last of the stanli things I have been working on, for your consideration. It redefines the torsion spring to use a fake spiral made out of arcs. This looks a bit smoother (using plot, steps were still noticed) and reaches the "ground" perpendicularly. It also has something of my personal taste, it is not linear. Definition uses a new variable \springTorsionRadius to control the size of the spring, which should allow for easier resizing. It is chosen to match the point to "ground" distance in bearings.

This PR also includes a clockwise variant for the torsional spring.

PR also includes a minor rewording of the stanli.tex support{5*} section, just to have all \hinge{1} stuff stay in the page.

This is how entry in stanli.pdf entry would look with the changes

image

Here goes a comparison of current and proposed shapes (red lines do not go into PR).

image

As before, none of the pdf files are rebuilt.

Regards,