In order to use the script you'll need to source a stl file of a spacebar of the profile of your choice, name it spacebar.stl, save it next to the OpenSCAD script, adjust the spacebar length and offset variables and generate the spacebar of the desired length.
Because I don't use any stabilizers on my spacebars, I didn't bother accommodating them, stabs suck!
Collection of spacebars:
-
Cherry: https://www.thingiverse.com/thing:4715279 (so=6.6; sc=-0.09)
-
SA: https://www.thingiverse.com/thing:2178185 (the license forbids remixing so I won't be sharing the files here, I generated the spacebars with so=6.7; sc=0.263)
-
DSA: the ends of the spacebar are too curved for this script to work properly unfortunately
-
MT3: Matt3o already published them here :) https://matt3o.com/mt3-row-5-spacebar-stls-all-of-them/
You can also generate a bunch of sizes with a bash script like this:
#!/bin/sh openscad -o '1u.stl' 'small_spacebar_generator.scad' -D l='1' openscad -o '1.25u.stl' 'small_spacebar_generator.scad' -D l='1.25' openscad -o '1.5u.stl' 'small_spacebar_generator.scad' -D l='1.5' openscad -o '1.75u.stl' 'small_spacebar_generator.scad' -D l='1.75' openscad -o '2u.stl' 'small_spacebar_generator.scad' -D l='2' openscad -o '2.25u.stl' 'small_spacebar_generator.scad' -D l='2.25' openscad -o '2.5u.stl' 'small_spacebar_generator.scad' -D l='2.5' openscad -o '2.75u.stl' 'small_spacebar_generator.scad' -D l='2.75' openscad -o '3u.stl' 'small_spacebar_generator.scad' -D l='3'Obscure sizes like 3.141592u work as well.
I printed mine with a 0.4mm nozzle at 0.1mm layer height and a >45 degree angle with automatic organic supports and 100% infill.
タグ
モデルソース
