Claude 3.5 Sonnet - Cine Lens Gear Generator
In this project, I developed a Python application designed to generate gear SVG files, leveraging the power of Claude 3.5 Sonnet for iterative design and optimization. The goal was to create gears that fit a 0.8 Module gear pitch, ensuring precision and compatibility with Cine lenses and other camera accessories. A key feature of the app is the "Export to SVG" button, which outputs the gear design as an SVG file. This file can then be easily imported into Autodesk Fusion for further 3D refinement and prepping for 3D printing.
Some of the prompts I used to create this tool.
Read both outer and inner diameter values from the GUI.
Check if the inner diameter is smaller than the outer diameter.
Plot both the gear outline and the inner circle representing the hole or hub.
Checks if a gear has been generated.
Opens a file dialog for the user to choose where to save the SVG.
Creates an SVG drawing using the svgwrite library.
Draws the gear outline and inner circle in the SVG.
Saves the SVG file.