Using OpenSCAD to build custom 3D pieces Build Your Own Body
Final Piece
Listing 6 shows how you would bring all the bits and pieces together. You import all the modules from their files (lines 1 to 3), then subtract the slots and holes from the body (lines 5 to 8), and finally add the reinforcement beam (line 10).
Listing 6
support.scad
01 use <body.scad>; 02 use <reinforcement.scad>; 03 use <slots.scad>; 04 05 difference () { 06 body(); 07 slots(); 08 } 09 10 reinforcement();
Press F6 to build the piece and then use the STL button at the end of the editor's toolbar to export the piece to STL.
You can then use a slicer like Cura [3] (Figure 10 again) to make the object ready for your printer. Cura is available in the repositories of most Linux distributions and will open your STL file. Cura also comes with configurations for many of the most popular printers. Choose yours from the list, and it will allow you to place, rotate, and scale your object, as well as let you set the resolution and infill, and so on.
Just in case, the piece you have seen in this article does require supports, as you can see in Figure 11.
Conclusion
Although this example is very specific, you should be able to use the object for your own printer even if it is a different model with some minor tweaks.
The more interesting point is that, with OpenSCAD, you can create pretty complex pieces that then translate into real world, useful objects. The potential for these kinds of things is huge, and OpenSCAD is a good way to reach it.
Infos
- "Designing Your Own Stuff with OpenSCAD" by Paul Brown, Linux Magazine, issue 222, May 2019, pp. 90-94, http://www.linux-magazine.com/Issues/2019/222/Designing-your-own-stuff-with-OpenSCAD
- OpenSCAD: http://www.openscad.org/
- Cura: https://ultimaker.com/en/products/ultimaker-cura-software
« Previous 1 2
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Wine 10 Includes Plenty to Excite Users
With its latest release, Wine has the usual crop of bug fixes and improvements, along with some exciting new features.
-
Linux Kernel 6.13 Offers Improvements for AMD/Apple Users
The latest Linux kernel is now available, and it includes plenty of improvements, especially for those who use AMD or Apple-based systems.
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.