OpenSCAD Tutorial

Lesson 3 · Combining Shapes

Keep the overlap with intersection

intersection() keeps only the volume that every child shares. Intersecting a cube with a slightly larger sphere gives a cube with rounded corners, a quick way to soften a shape.

Unlike difference(), the order of children in intersection() does not matter.

Your task: keep only the part where the cube and the sphere overlap.

Loading the OpenSCAD editor…
Step 8 of 16