Openscad files for a floating wheel hub cap. More details are at https://www.printables.com/model/928406.
The latest STL files are downloadable at https://github.com/Bob-vdV/floating-hub-cap/releases/latest.
To generate the STL files automatically you need openscad and python installed. The nightly version of openscad is highly recommended because of its better performance.
The parameters of the hub cap can be set in centercap_params.json
. Any parameter listed in centercap_params.scad
can be added and changed via the json file.
All STL files can then be generated by executing the following command:
python ./make.py --openscad_path="<path_to_openscad>"
On Windows with the default openscad nightly install location this would be:
python ./make.py --openscad_path="C:\Program Files\OpenSCAD (Nightly)\openscad.exe"
This python script creates the build folder and then generates all STL files for all parameter sets in the json file.
Alternatively to the python script, each STL file can be generated normally using the openscad GUI. All parameters can then be changed directly in centercap_params.scad
(not the json file). Once the parameters have been set, save the parameters file and then render each model file (e.g. centercap_base.scad
) seperately. This should use the values from centercap_params.scad
.