A GUI Tool for Converting Thorlabs Educational AFM Data to 3D Printable Mesh (.stl)
UnNano enables the conversion of Thorlabs AFM data into 3D printable meshes in ~100ms, providing high-resolution visualizations of 20×20 micrometer samples. Normalization of inputs occurs but relative height differences are preserved.
- Safe removal of even extreme scanline artifacts
- Fast Plane Leveling Tool
- Adjustable Model Label
-
Prepare the Directory
Ensure that the unnano.py file is located in a folder containing a subfolder namedmodel_template
. -
Install Dependencies
Install the required dependencies by running the following command:pip install -r requirements.txt
-
Run The Program
Start unnano.py
-
Add AFM Data
Drag in a Thorlabs AFM output csv (in semicolon-delimited CSV format)
-
Generate STL
Hit the generation button and retrieve your 3D .stl file
The input CSV file is first converted into a normalized 32-bit TIFF, which preserves the relative height accuracy from the AFM data. This TIFF file is then applied to a high-resolution mesh consisting of 652,864 faces. This mesh has more than sufficient resolution to faithfully represent the height data at the highest AFM resolution of 500×500 pixels.
- Blender’s built-in texture interpolation is applied by default to smooth the displacement across the mesh.
100x100 Pixel Scan:
500x500 Pixel Scan: