BetaBetaBetaWorks out the centre line of a compression spring's wire up +Z, with a closed coil at each end, the active coils' pitch and the solid length, where every coil touches the next.
The wire runs three quarters of a coil past 0 and length: sweep it along the points, then
cut it flat at both.
The wire, the coils and the length
The centre line's points, the pitch and the solid length
Compression springs with closed and ground ends, with no CAD kernel needed: the path of the wire's centre, its pitch and its solid length.
occt.parts.mechanical.springssweeps the wire into a solid.