3D part design with Inkscape and Openscad Part 8: adding a Torus module

3D part design with Inkscape and Openscad Part 8: adding a Torus module

Adding additional functionality the Openscad template is fairly simple, first you set up the options you want for the customizer menu:



The menu will be added to the customizer:

Then you will need to add new module for creating the torus:



And then add a call to the torus module in the "all modules" module:

Now you can make a Torus:

Click for a larger version

I'm going to use the new Torus function to make a mold for making o-rings out of silicone, first I will make a circle:

Next I'm going to  put each module call on it's own line, comment out the modules I want to use for the difference command and use them in difference():

What this does is it allows me to call specific modules and use the difference() instruction with them, which ever one is first will have the others subtracted from it:

click for a larger version

Now the Torus is subtracted from the circle, and I will add a cylinder  for a cone shaped fill point:

click for a larger version

Then I can adjust things on the fly if necessary:

Click for a larger version

A tub drain plug with groove for an o-ring made with the torus module:

Finished print:


Share Tweet Send
0 Comments
Loading...
You've successfully subscribed to infinityplays.com
Great! Next, complete checkout for full access to infinityplays.com
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.