Think in 3D · Chapter 15

In Oexta 3D: build with code

Free online practice for this chapter. Read the chapter in the book first, then work down this page.

Do it yourself

Use Oexta 3D (our own 3D program) or any 3D program you have. The book shows the same jobs in Blender, Fusion, Tinkercad and Oexta 3D. Tick each one when it is done; ticks stay on this device only.

Check your understanding

Answer in your head or on paper first, then tap to compare. Your words can be different.

  1. What is code CAD, and why is a script easy to change?

    Show the answer

    Code CAD means writing the model as instructions, like a recipe, and the computer builds it. Changing one number, such as `size`, changes the whole part.

  2. What does `difference(a, b)` do?

    Show the answer

    It cuts b out of a. The first shape is the solid, and everything after it is cut away.

  3. Why should a cutting shape be taller than the shape it cuts?

    Show the answer

    So it pokes out on both sides. If it is only as tall, a paper-thin skin can stay behind.

  4. What does a variable such as `size = 30;` let you do?

    Show the answer

    It gives a number a name. Change it once and every part that uses it changes.

  5. What does `$fn` change?

    Show the answer

    How round curves are. A higher number gives smoother circles and more triangles. 32 to 64 is plenty for printing.

  6. What is the difference between `linear_extrude` and `rotate_extrude`?

    Show the answer

    `linear_extrude` pulls a 2D shape straight up. `rotate_extrude` spins a 2D shape around the middle, like a pot on a wheel.

For teachers and schools

Use these pages as bell work, exit tickets or homework. Lesson ideas, class tools and how schools use Oexta are on the Oexta for schools page.