For curious coders out there, this changelist added .SVGs to doc subfolders, generated using @jamiek’s OpenSCAD Strut generator script, from 480mm to 1700mm.
Context about when and why LR3 Custom Strut .SVG download was added to LR3 Calculator can be found within LR3 Release Notes topic. Found reading through that entire topic very helpful for my LR3 build.
I believe that is the original location for the source lr3-strut-plate-variable.scad file and I believe the generator noted above in the gitub changelist is using that same file as an input to the command line processing.
Cool, Ryan already approved and merged. LR3 Size Calculator is updated already. I needed to clear browser cache to see updated behavior. Let me know if any issues. Cheers!
@vicious1@jeffeb3, do you know/remember why the inch-to-mm conversion rounded to 10mm? Does that logic still make sense?
Want me to edit Strut Length calc to nearest 1mm (instead of 10mm)? Struts dimensions will be more accurate for people’s builds if their Tubes were measured-n-cut using imperial unit lengths.
metricNum = imperialNum * 25.4 // Convert to metric
metricNum -= (metricNum % 10) // Round to nearest 10mm.
All that said, I can’t think of good reason for inch-to-mm conversion being rounded to nearest 10mm. So, am submitting edit that rounds Strut length to nearest mm. I should have done this when I first added Struts to LR3 Calc.
Yeah. The “step” in the comment was the step parameter on one of the input boxes. It determines how much the value changes when you scroll the wheel or click the little arrows.
The step was 10mm, and sp the coversion had to sink into one of those steps, or swapping back and forth would mess it up.