Step 1: Teach students how to construct color-coded rectangular prisms with OpenSCAD.
Example:
color("red")cube([4,3,2]);
translate([5,0,0])color("green")cube([8,6,4]);
Step 2: Students will work individually or in pairs to create two proportionally-scaled color-coded prisms.
Step 3: Students will paste their code in the chat.
Step 4: Another group will take the other group's code and add another prism scaled with the same proportion one level larger.
Extension
Calculate the volume of the prisms from one OpenSCAD design. How do the volumes relate? Can you create an equation for proportional volumes?
OpenSCAD