vibe-openscad

bare-think-off/claude-opus-5 / tier-1-stepped-pyramid

success tier 1

bare (claude opus 5)

render
bare render of tier-1-stepped-pyramid
loading STL…
success 6.6s · 198/394t · $0.0108
SCAD (28 lines)
// 3段の階段状ピラミッド

// 各段のパラメータ: [一辺の長さ, 高さ]
steps = [
    [60, 10],
    [40, 10],
    [20, 10]
];

module step_pyramid(steps) {
    z = 0;
    for (i = [0 : len(steps) - 1]) {
        // i段目までの高さの合計を求める
        translate([0, 0, i == 0 ? 0 :
            // 下の段の高さを積算
            add_heights(steps, i)])
            cube([steps[i][0], steps[i][0], steps[i][1]], center = false);
    }
}

// 0段目から (n-1) 段目までの高さの合計
function add_heights(steps, n) =
    n <= 0 ? 0 : steps[n - 1][1] + add_heights(steps, n - 1);

// 中心を揃えて積み上げる
for (i = [0 : len(steps) - 1])
    translate([-steps[i][0] / 2, -steps[i][0] / 2, add_heights(steps, i)])
        cube([steps[i][0], steps[i][0], steps[i][1]]);

meta

runIdbare-think-off_claude-opus-5-e0c0ec6a5ddf-2026-09-05T09-53-57-447Z
matrixIdbare-think-off/claude-opus-5
signaturee0c0ec6a5ddf512d…
provideranthropic
modelclaude-opus-5
harnessbare
statussuccess
duration6.56s (wallclock: load + prompt eval + generation + network)
tokens198 in / 394 out
wallclock tok/s60.1 tok/s (end-to-end)
cost$0.0108
createdAt2026-09-05T09:53:57.447Z
gitCommitae06af89b638
openscadOpenSCAD version 2026.04.27

prompt

OpenSCAD で、底辺 60mm × 60mm × 高さ 10mm の正方形の板の中央に、それより一回り小さい
40mm × 40mm × 高さ 10mm の板を載せ、さらにその中央に 20mm × 20mm × 高さ 10mm の板を
載せた、3 段の階段状ピラミッドを作ってください。各段は中心を揃えて積み上げます。

完成したコード全体を ```openscad ... ``` のフェンスで囲んで出力してください。コードのみで、追加の説明は不要です。