This is a collection of scripts to design 3D printed radial ("Soller slit") collimators.
- Python (all components should now work with Python 3)
- numpy
- scipy
- vapory (to allow raytracing with POV-Ray in Python)
- FreeCAD 0.18
- POV-Ray 3.7.0.8
- stltools
Edit the script designer/soller.py to meet your requirements. Most parameters are as in the earier Mathematica vesion of the script.
formatshould usually bejsonscadis retained as an option to produce output compatible with OpenSCAD, which can allow a quick preview of the model without having to render
partshould be0unless you want to generate only a subset of the grid walls (this can be used as part of the process to facilitate blob-free printing)
Run the script to produce the RadialCollimatorBox and RadialCollimatorGrid files.
- Open
Collimator.FCMacroin FreeCAD.- Ensure the paths to your .json files are correct
- Edit the relevant lines to set the desired wall thicknesses
- Create a new empty document
- Execute the macro in the editor
- Use
stl2povfrom stltools to produce a.incfile - Use the
raytracing/povray.pyscript, in particular itsscenefunction to render what an image would look like on an area detector; examples can be found in the script. It is recommended to use an interactive Python shell while working with this- Always be sure to include the
auto_camera_angle=Falseoption, otherwise the view will not be as you intended
- Always be sure to include the
Your mileage may vary, depending on the material used and the print options selected.
- A novel 3D printed radial collimator for x-ray diffraction by S. Kowarik, L. Bogula, S. Boitano, F. Carlà, H. Pithan, P. Schäfer, H. Wilming, A. Zykov and L. Pithan