OpenSCAD Ring holder

For my project I wanted to create something functioning, and what better way to do that than to combine it with the project we just finished? With this in mind, I set out to design a simple ring holder. I originally wanted three cylinders with sharp edges at the top, so I began by trying to create cylinders and translating them so they would sit cross shape and intersect one another. Unfortunately, as I am not that adept at coding, I was struggling to translate the cylinders to do what I wanted. After much research and a meeting with Laura the best decision for me to move on was to actually use the Hull function, which meant I would be connecting two spheres to one another to create the stem of the cylinder. This changed my design for the better as it rounded out the tops of my design, as well as made it easier to translate the spheres so they could be touching. The next thing I had to remember to do was lower the print when I put it in Cura so that the printer would not have to struggle with printing rounded edges on the bottom. Below is a picture of my first iteration of the design!



hull(){

    translate ([-10,50,0]) sphere(8);

    translate([-10,0,50]) sphere(8);

}

hull(){

    translate ([4,50,50]) sphere(8);

    translate ([4,10,0]) sphere (8);

}

hull(){

    translate ([18,50,0]) sphere(8);

    translate ([18,0,50]) sphere (8);

}

hull(){

    translate ([32,50,50]) sphere(8);

    translate ([32,10,0]) sphere (8);

}

hull(){

    translate ([46,50,0]) sphere(8);

    translate ([46,0,50]) sphere (8);

}

hull(){

    translate ([60,50,50]) sphere(8);

    translate ([60,10,0]) sphere (8);

}

 

To revamp the project I wanted to keep the design functioning, in the same role, and simple. My thought process then lead to me creating a cup feature that is connected top the project for earrings. I first raised the back one side of the cylinders to make my product more versatile. After much playing around, where I forgot to end the project with the required semi colon way too many times, I finally created it to my liking. However, when I went to print it, the design took a very long time and had a risk of falling apart as I had to add another cylinder across the middle of the design to attach the cup to. Without supports, the design would not print properly. As I have had issues with printing with supports in the past, I decided to scale the project down 75% and test print it to make sure the supports held. To my relief, it printed  nicely!

hull(){

    translate ([-10,50,0]) sphere(8);

    translate([-10,0,80]) sphere(8);

}

hull(){

    translate ([4,50,50]) sphere(8) ;

    translate ([4,10,0]) sphere (8);

}

hull(){

    translate ([18,50,0]) sphere(8);

    translate ([18,0,80]) sphere (8);

}

hull(){

    translate ([32,50,50]) sphere(8);

    translate ([32,10,0]) sphere (8);

}

hull(){

    translate ([46,50,0]) sphere(8);

    translate ([46,0,80]) sphere (8);

}

hull(){

    translate ([60,50,50]) sphere(8);

    translate ([60,10,0]) sphere (8);

}hull(){

    translate ([-10,30,30]) sphere(10);

    translate ([70,30,30])

    sphere (10);

}

translate ([100,30,0])

linear_extrude(height = 60, slices = 40) {



difference() {



offset() {



circle(30, center = true);



$fn=100;



}



offset() {



circle(25, center = true);



$fn=sides;



}



}



}

translate ([100,30,0])cylinder (r=30);