TIER 3 · ASSEMBLIES·t3_01

A flanged cylinder: a 20mm-diameter shaft 30mm tall sitting on a 40mm-diameter flange 6mm thick. The flange has four 4mm holes equally spaced on a 32mm bolt circle.

Claude Opus 4.6Zoo ML-ephantGemini 2.5 FlashGPT-5Text2CadQuery (Qwen 3B)
3D RENDER · Claude Opus 4.6
CADQUERY (PYTHON)SOURCE
✓ executed
import cadquery as cq

# Create the flange (40mm diameter, 6mm thick)
flange = cq.Workplane("XY").cylinder(6, 20, centered=(True, True, False))

# Create the shaft (20mm diameter, 30mm tall) sitting on top of the flange
shaft = cq.Workplane("XY").workplane(offset=6).cylinder(30, 10, centered=(True, True, False))

# Union the flange and shaft
result = flange.union(shaft)

# Add four 4mm holes equally spaced on a 32mm bolt circle (radius = 16mm)
result = (
    result
    .faces("<Z")
    .workplane()
    .polarArray(16, 0, 360, 4)
    .hole(4)
)
COMPARE · SAME PROMPT
Zoo ML-ephant
Gemini 2.5 Flash
GPT-5
no output
Text2CadQuery (Qwen 3B)