Architecture Using SCAD

Type: Investigation

Theme: Engineering

Grades: 5, 6, 7, 8, 9, 10

Learning Target: Students will use boolean functions in OpenSCAD to add and subtract shapes to design an architectural structure.


This is a group project (2 or 3). If you would like to work alone, please contact your teacher.

  1. Research a structure found on a castle from any era of human history, such as turrets, crenellations, spiral starcases, arches, arrow loops, windows, buttresses, ramparts, etc. Write a few context paragraphs describing the structure and purpose of that part of a castle. Please include the time period, brief history, and geographic location of that type of castle. You may use a fortress structure from any part of the world.
  2. Plan your project. Create an annotated sketch of your component. Please use isometric paper unless blank paper would be a better choice. Digital ink is OK.
  3. Build your OpenSCAD design. Use inline comments to annotate your code.
  4. Submission: Word document containing the following (you are not required to create a Sway or PowerPoint).
    1. Title of your project and your name
    2. Context paragraphs
    3. Your annotated sketch
    4. A screenshot (snip) of your OpenSCAD structure.
    5. Your code (annotated)


OpenSCAD Example Code:

difference(){ //subtracts the second part from the first
color("Peru")cylinder(h=20, r=10, center=false);//first part, main walls
union(){//parts to subtract
for(i=[1:1:3]){ //loop produces crenellations
rotate([0,0,i*120])translate([0,0,19])cube([21,3,3], center=true);
translate([0,0,15])cylinder(h=6, r=8, center=false); //inset subtracted cylinder


Exit Ticket
CCSS Math Practice
  • I can model with mathematics.
NGSS Crosscutting Concepts
  • Scale, Proportion, and Quantity