Universal Bahtinov Mask Generator by ttait_vantim 3d model
3dmdb logo
Thingiverse
Universal Bahtinov Mask Generator by ttait_vantim

Universal Bahtinov Mask Generator by ttait_vantim

by Thingiverse
Last crawled date: 3 years, 4 months ago
Update of my previous remix, should have everything that one did plus:
Easy-to-use Customizer based interface - no source code modifications needed
Support for dynamic creation of masks for lenses not in preset list
Restored support for telescopes (functionality lost along the way before).
Easy addition of new presets w/o source code editing
The input can be done through the Thingiverse "Customizer" app link at the top of the right sidebar, or on your own PC/Mac using OpenSCAD. This version requires OpenSCAD 2019.5 or newer, which can be downloaded from here:http://www.openscad.org/downloads.html
To use OpenSCAD on your PC/Mac,
Install OpenSCAD
Place both the .scad file and .json file in the same directory
Launch OpenSCAD and ckick File->Open to load the .scad file
Use "customizer" tab to load preset and/or change values
Press "F5" to quickly render preview of the mask
If render does not appear, check the "Console" tab for error messages
Press "F6" to generate a full render (Note: This make take several minutes even on a fast system)
Press "F7" to generate STL from full render and save to file
NOTE: It looks like the presets don't work in the Thingiverse app, only in the desktop OpenSCAD (assuming you download the JSON too). I also couldn't get the Thingiverse app to work in Chrome, but it was fine in Firefox.
Note that some of the preset Lens masks have gap/spokes as fine as 0.5mm, I am not sure those will print well on a typical FDM printer. The default minimum limit for gap is set to 0.8mm, if you wish to override it can be changed in the "Mask Options" tab.
I've tried to put help text for every input in the Customizer, but this may need more documentation.
Detailed Changes:
Added the method to calculate the Bahtinov mask gaps based on focal length input
Automatic switch from 1st order mask to 3rd order if 1st order gap is too fine to print
Added full support for Customizer (Thingiverse one OR the one in OpenSCAD 2019.5 or later) so no source editing required
Moved all Lens presets to Customizer JSON file - easy to add new ones, just enter values in OpenSCAD customizer, add new preset name and save!
Restored the functionality for inset masks with handle and no retention rings for telescopes
Restored central mirror obstruction opening functionality

Tags