Making a 3D printable wave ring from scratch just by using pure Python
Making a 3D printable wave ring from scratch just by using pure Python
Added platform-specific file opening for macOS and Windows. so that the obj files open automatically after checking the user’s OS , improved, optimised and verified the code such that the object formed is perfectly symmetrical.
Log in to leave a comment
I wanted to see if I could create jewellery using nothing but trigonometry. By defining the radius of the ring’s band as a sine wave, I transformed a circle into something geometrical. The script that I wrote calculates 12,000 triangular faces in less than a second—a task that would take significantly longer to model by hand in a traditional 3D workspace. The result is a Computational Jewel that is perfectly symmetrical and wonderful to look at.
First ran into issues, while using the modulo operator that resulted in the mesh having holes, but now it is all fixed. and used the next_i = (i + 1) % segment , a crucial bit of logic to ensure the very last slice of the ring connects back to the first slice.
Log in to leave a comment