From the course: Creating a Captive Sphere with OpenSCAD

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Creating a second cube

Creating a second cube

- So how do we flatten the base of this sphere to make it printable? Well, we know how to remove a section of an object, because we removed the sphere from inside the original cube. So let's do the same thing again. We'll start off by drawing a new cube. We'll hit enter, and we'll type cube, and we'll make it the same size as the original. 30 millimeters on a side. We also, of course, need to make this centered, so we'll go within our brackets, and we'll type, once again, ',' to show a new instruction, and center=true. Let's preview that. And there's our cube directly on top of the original one. We want to move this cube down along the z-axis so that it comes right at the base of the original cube, and we can do that using the translate command. We'll make a new line directly above the cube, and we can type translate, and once again, we'll use brackets to indicate the amount of the translation. Now, because we want to move this cube different directions in each dimension, we have to…

Contents