vibe-openscad

bare-xhigh/claude-opus-4-8 / tier-1-mug

success tier 1

bare (claude opus 4.8)

render
bare render of tier-1-mug
loading STL…
success 6.6s · 220/501t · $0.0136
SCAD (41 lines)
// マグカップのパラメータ
outer_diameter = 80;      // 外径
outer_radius = outer_diameter / 2;
height = 100;             // 高さ
wall_thickness = 4;      // 肉厚
bottom_thickness = 6;    // 底面の厚み
inner_radius = outer_radius - wall_thickness;
inner_height = height - bottom_thickness;

// 取手のパラメータ
handle_ring_radius = 12;       // 取手リングの半径(指を通す穴の太さ方向)
handle_tube_radius = 5;        // 取手の太さ(チューブの半径)
handle_height = height / 2;    // 取手を付ける高さ(中心高さ)

$fn = 100;

// カップ本体
module cup_body() {
    difference() {
        // 外側の円柱
        cylinder(h = height, r = outer_radius);
        // 内側のくり抜き
        translate([0, 0, bottom_thickness])
            cylinder(h = inner_height + 1, r = inner_radius);
    }
}

// 取手(リング状)
module handle() {
    translate([outer_radius - 2, 0, handle_height])
        rotate([90, 0, 0])
            rotate_extrude($fn = 100)
                translate([handle_ring_radius, 0, 0])
                    circle(r = handle_tube_radius);
}

// 全体の組み立て
union() {
    cup_body();
    handle();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-xhigh_claude-opus-4-8-a4128c6ab1bb-2026-06-09T17-39-30-360Z
matrixIdbare-xhigh/claude-opus-4-8
signaturea4128c6ab1bb1c39…
provideranthropic
modelclaude-opus-4-8
harnessbare
statussuccess
duration6.57s (wallclock: load + prompt eval + generation + network)
tokens220 in / 501 out
wallclock tok/s76.3 tok/s (end-to-end)
cost$0.0136
createdAt2026-06-09T17:39:30.360Z
gitCommitc8a77106d384
openscadOpenSCAD version 2026.04.27

prompt

OpenSCAD で、外径 80mm、高さ 100mm、肉厚 4mm のマグカップを作ってください。
底面の厚みは 6mm とし、内側はくり抜いて飲み物を入れられる形状にしてください。
さらに、側面には外径方向に飛び出す半径 12mm の取手(リング状の取手)を付けてください。
取手はカップの中心高さあたりに付け、外周から十分にはみ出して指を通せる形にしてください。

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