parametric frame for glasses starting from lens STL

Starting from an STL model of the left lens, build a parametric frame for your glasses using OpenSCAD.
32
348
3
1616
updated November 16, 2024

Description

PDF

Starting from an STL model of the left lens, build a parametric frame for your glasses using OpenSCAD. Hinge and temple design inspired from by u:erickso's glasses but both redesigned from scratch in FreeCAD.

* * * Rev.1: adding taper to lens cutout making supports unnecessary!

*clarification: As of the current version Open SCAD can't return the coordinates of an imported STL so unfortunately you will have to adjust parameters to move the imported lens STL close to origin to be able to merge it with the nose bridge and hinges. Hopefully a way to control the coordinates of the imported STL will be added to a future Open SCAD version.

To use:

  • Download the SCAD file as well as HINGE.STL.
  • Trace the contour of your right lens onto the back of an engineering paper sheet, making sure it sits in the correct angular orientation relative to the paper grid.
  • Scan the sheet using a geometrically accurate scanner (for example the ScannerPro app on iPhone making sure geometry correction is enabled.).
  • Follow this youtube guide to import the scanned image into FreeCAD and trace the contour of the lens.
  • Pad the drawing by the thickness of the lens, then export the body as LEFTLENS.STL in teh same dir as the OpenSCAD script.
  • Measure the width and height of the lens drawing (in MM).
  • Open the SCAD script, enter the lens width, height, and thickness, and adjust the other parameters to the right  until the design looks something like this
  • Generate the geometry and export as STL.
  • Print your new FRAMES.STL as well as the temples.
  • Push some PLA filament through the hinge holes and trim it to length.

The lenses snap into the frame. The tolerances can be adjusted in the SCAD parameters but the defaults should produce a snug fit, something like this:

----------

Update 8-27-22: added Rev.1 as described above.

Edit 9-9-22: deleted files that are superseded by Rev.1, reordered images, and fixed links for left & right temples.

Update 7-30-24: reuploaded redesigned and slightly improved temples in three length options, and new, reinforced hinges.

Update 11-15-24: added a pair of fancier temples that work well with sunglasses.

Category: Glasses

Tags



Model origin

The author marked this model as their own original creation. Imported from Thingiverse.

License