Adding a base plate to our 3D-printed name badge
To complete our 3D-printed name badge, we require a base plate for the text. We will start with a basic shape before we implement the code to build a base plate with a series of modules. We will then add our text to complete the design of the 3D-printed name badge. Let's start with a module to create a basic 2D shape.
Creating our first shape
We will start off the design of our base plate with a simple 2D design. As with the code we covered in the Creating our PVC pipe hook section of Chapter 4, Getting Started with OpenSCAD, we take the intersection of a circle and square to give us a basic first shape. We will put this code inside a module. Let's get started, as follows:
- Create a new OpenSCAD file and type in the following code:
module create_first_shape() { intersection() { translate([20,0]) ...