TIER 4 · COMPLEX GEOMETRY·t4_03

A 90-degree pipe elbow: 15mm inner diameter, 2mm wall thickness, with 25mm-long straight sections on each end of the bend. The bend centerline radius is 20mm.

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 90-degree pipe elbow: 15mm inner diameter, 2mm wall thickness, with 25mm-long straight sections on each end of the bend. The bend centerline radius is 20mm.
*/
@settings(defaultLengthUnit = mm, kclVersion = 1.0)

// Parameters
bendAngleDegrees = 90
bendCenterlineRadius = 20
innerDiameter = 15
wallThickness = 2
straightLength = 25

// Derived
outerDiameter = innerDiameter + 2 * wallThickness
outerRadius = outerDiameter / 2
innerRadius = innerDiameter / 2

// Pipe section profile (annulus) on XY
ringSketchPlane = startSketchOn(XY)
outerCircle = circle(ringSketchPlane, center = [0, 0], radius = outerRadius)
innerCircle = circle(ringSketchPlane, center = [0, 0], radius = innerRadius)
ringProfile = subtract2d(outerCircle, tool = innerCircle)

// Centerline path with straight tangents and 90° bend on YZ
pathPlane = startSketchOn(YZ)
sweepPath = pathPlane
  |> startProfile(at = [0, 0])
  |> yLine(length = straightLength)
  |> tangentialArc(radius = bendCenterlineRadius, angle = -bendAngleDegrees)
  |> xLine(length = straightLength)

// Sweep the annulus along the path to form the elbow with straight ends
elbowWithTangents = sweep(ringProfile, path = sweepPath)
COMPARE · SAME PROMPT
Claude Opus 4.6
no output
Gemini 2.5 Flash
No variable named 'result' found after exec()
GPT-5
no output
Text2CadQuery (Qwen 3B)
GC_MakeArcOfCircle::Value() - no result