Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Simplifying 3D Printing with OpenSCAD

You're reading from   Simplifying 3D Printing with OpenSCAD Design, build, and test OpenSCAD programs to bring your ideas to life using 3D printers

Arrow left icon
Product type Paperback
Published in Mar 2022
Publisher Packt
ISBN-13 9781801813174
Length 320 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Colin Dow Colin Dow
Author Profile Icon Colin Dow
Colin Dow
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Preface 1. Part 1: Exploring 3D Printing
2. Chapter 1: Getting Started with 3D Printing FREE CHAPTER 3. Chapter 2: What Are Slicer Programs? 4. Chapter 3: Printing Our First Object 5. Part 2: Learning OpenSCAD
6. Chapter 4: Getting Started with OpenSCAD 7. Chapter 5: Using Advanced Operations of OpenSCAD 8. Chapter 6: Exploring Common OpenSCAD Libraries 9. Part 3: Projects
10. Chapter 7: Creating a 3D-Printed Name Badge 11. Chapter 8: Designing and Printing a Laptop Stand 12. Chapter 9: Designing and Printing a Model Rocket 13. Part 4: The Future
14. Chapter 10: The Future of 3D Printing and Design 15. Other Books You May Enjoy

Learning OpenSCAD Boolean and transformation operations

In this section, we will cover some of the basic Boolean and transformation operations. We will then use this knowledge to build a PVC pipe hook, as shown in Figure 4.3.

Let's start with Boolean operations.

OpenSCAD Boolean operations

There are three Boolean operations in OpenSCAD. These are as follows:

  • union() – This operation joins shapes together. This can be used for 2D or 3D shapes (but not at the same time).
  • difference() – This operation subtracts the second and subsequent shapes from the first shape. This operation may also be used on 2D and 3D shapes, but not at the same time.
  • intersection() – This operation creates an intersection between shapes. Only the area in which the shapes overlap is retained. This may be used with 2D and 3D shapes as well, but not at the same time.

To demonstrate how each Boolean operation works, let's use a simple sketch. To do so...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime