Open SCAD commands
Code to Reveal
Create your own
Other
100

What is the importance of 'difference'?

subtracting a shape from the base shape

100

What does this code create: 

sphere(r=10, $fn=100); translate([0,0,-15]) cylinder(h=15, r=1); 

Lollipop/balloon

100

Code a cube with one side of a die

potential code:

difference () {

    rotate (a=0, v=[1,0,0])  cube (size=[100, 100, 100], center=true);

    rotate (a=0, v=[1,0,0]) cube (size=[90,80,80], center = true);

    rotate (a=0, , v=[1,0,0]) cylinder (h=80, d=15, center = false, $fn=100);}

100

what must you do before printing your object?

Slice it

200

what is the difference between 'translate' and 'rotate'?

translate shifts an object in a straight line, rotate spins an object around the origin

200

What does this create: 

difference() {  cylinder(h=5, r=12, center=true, $fn=100);  cylinder(h=7, r=3, center=true, $fn=100); }

Donut/Wheel

200

Code a snowman

Potential code:

{translate([0, 0, 0])  sphere(r = 20);

    translate([0, 0, 24]) sphere(r = 15); 

    translate([0, 0, 44]) sphere(r = 11); }

200

What does the 'union' command do?

combines separate shapes into a single object

300

Which symbol is required at the very end of every command?

semicolon ;

300

What does this create:

cylinder(h=15, r1=0, r2=8, $fn=100); translate([0,0,15]) sphere(r=7.5, $fn=100);

Ice cream cone

300

Pepperoni Pizza

Potential code:

$fn = 60;

cylinder(r=40, h=4);translate([0, 0, 1]) 

cylinder(r=36, h=4.2);

for (pos = [[0,0], [15,10], [-18,8], [5,-20], [-12,-15], [20,-12], [-5,22], [22,12], [-22,-10]]) {

translate([pos[0], pos[1], 5.4]) cylinder(r=5, h=1);}

300

Guess what?

FREEEE POINTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!

400

In the command cube ([5, 4, 3]);, what number represents the width of the cube along the X-axis?

5

400

What does this code create:

cube([20,20,15], center=true); 
translate([0,0,7.5]) rotate([0,0,45])   
cylinder(h=10, r1=15, r2=0, $fn=4);

House

400

Code a car

potential code:

$fn = 40;

 translate([16, 0, 7]) cube([16, 16, 10], center=true); translate([2, 0, 10]) cube([16, 16, 16], center=true); translate([-14, 0, 8]) cube([18, 16, 12], center=true); for (x = [16, -14]) {    for (y = [9, -9]) {translate([x, y, 4]) rotate([90, 0, 0]) cylinder(r=5, h=3, center=true);    } }

400

True or False: In OpenSCAD, the code Cube() with a capital "C" will do the exact same thing as cube() with a lowercase "c"

FALSE! OpenSCAD is case-sensitive

500

If your circle or sphere looks blocky, what do you increase to make it smooth?

$fn

500

What does this create?

$fn = 40;

translate([0, 0, 35])  cube([10, 2, 60], center=true);

translate([0, 0, 4])   cube([30, 4, 4], center=true);

translate([0, 0, -6]) cylinder(r=2, h=16, center=true);

translate([0, 0, -15])   sphere(r=3.5);


sword 

500

Code a UFO

Potential code:

{cylinder(r1=25, r2=15, h=10, center=true);

    sphere(r=5); }

translate([0, 0, 8]) sphere(r=15);

translate([0, 0, 23]) {cylinder(r=1.5, h=10); translate([0, 0, 10]) sphere(r=3.5);}

500

When and where is 'linear_extrude' used for?

it stretches text