A browser-based generator for 3D-printable PCB-style models from three PNG masks:
- Outline mask: base shape/depth (required)
- Trace mask: extra raised depth on top of the outline (optional)
- Hole mask: carved out through all layers (optional)
For every PNG:
- White pixels are treated as "out" (removed)
- Non-white pixels are treated as "keep" (solid)
Use the White threshold control to decide what counts as white.
- If your PNG was exported with a known DPI (for example 1000), enable
Use DPI to auto-calculate XY scale. - The generator uses:
mm per pixel = 25.4 / DPI. - If images are downsampled by
Max image dimension, the app automatically compensates so physical STL size remains correct. - For tighter dimensional accuracy, increase
Max image dimension(for example 700-1000) to reduce raster quantization error on edges.
Open index.html in a modern browser.
No build step is required.
Click Export STL after generating to download a binary STL file you can slice for 3D printing.
- All masks are resized to the outline dimensions and limited by
Max image dimensionfor performance. - The mesh is generated from voxels for predictable behavior from mask data.
- You can tune horizontal scale with
XY size per pixel (mm)and depth withLayer step in Z (mm).