TIER 2 · MULTI-FEATURE PARTS·t2_02

A solid cylinder 30mm in diameter and 20mm tall with a coaxial through-hole 10mm in diameter.

Claude Opus 4.6Zoo ML-ephantGemini 2.5 FlashGPT-5Text2CadQuery (Qwen 3B)
3D RENDER · Zoo ML-ephant
KCL (KITTYCAD LANGUAGE)SOURCE
✓ executed
/*
Generated by Text-to-CAD:
A solid cylinder 30mm in diameter and 20mm tall with a coaxial through-hole 10mm in diameter.
*/
@settings(defaultLengthUnit = mm)

// Parameters
outerDiameter = 30
height = 20
holeDiameter = 10

// 2D annulus profile
annulus = startSketchOn(XY)
  |> circle(center = [0, 0], diameter = outerDiameter)
  |> subtract2d(tool = circle(center = [0, 0], diameter = holeDiameter))

// Extrude to make the cylinder with through-hole
part = extrude(annulus, length = height)
COMPARE · SAME PROMPT
Claude Opus 4.6
Gemini 2.5 Flash
GPT-5
Text2CadQuery (Qwen 3B)