Drag a shape from the left onto the plate.
Shapes. Every size is in millimetres. They land in the middle of the plate, sitting on it.
box(20) a cube box(40, 20, 10) across, deep, tall ball(20) a ball 20 across tube(10, 30) wide, tall cone(20, 30) wide, tall pyramid(30, 25) wide, tall dome(30) half a ball hex(20, 10) a six-sided post diamond(24, 40) wide, tall pipe(20, 30, 3) wide, tall, wall star(40, 6) wide, thick donut(30, 8) wide, how thick the ring is ramp(20, 20, 20) a wedge
Where it goes. x is across, y is front to back, z is up — the same as a 3D printer and OpenSCAD:
box(10, x=30, y=-20) along the plate
box(10, z=40) how high off the plate
(z=0 sits on it)
box(10, tip=90) turn it, in degrees
(tip, spin, roll)
box(10, hole=True) a hole, not a shape
box(10, colour="pink")
The colours are orange, gold, yellow, green, teal, blue, purple, pink, white and black.
Afterwards you can keep changing one:
b = box(20)
b.z = 30 or b.x b.y b.w b.d b.h
b.top b.bottom stack: c.z = b.top
b.move(10, 0, 5) shift it
b.up(12) lift it
b.turn(spin=45) turn it some more
b.paint("pink")
b.cut() make it a hole
b.copy() another one the same
Putting them together. A hole bites a piece out of everything it touches:
glue(body, head) one shape, holes
cut out for real
cut(tag, tube(6, 10)) second out of first
hole(ball(8)) mark it as a hole
Python. for, while, if, def, lists, f-strings,
print(), and the maths: sqrt sin cos tan
atan2 floor ceil pi tau radians degrees randint choice.
import math works too.
Running it builds the whole design from your code, so the code is the design. Undo brings back whatever was on the plate before.
Making your file…