vibe-openscad

bare-max/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 7.0s · 218/462t · $0.0126
SCAD (41 lines)
$fn = 100;

// パラメータ
outer_diameter = 80;
height = 100;
wall = 4;
bottom_thickness = 6;

outer_radius = outer_diameter / 2;
inner_radius = outer_radius - wall;
inner_height = height - bottom_thickness;

// 取手パラメータ
handle_minor_radius = 6;   // チューブの太さ
handle_major_radius = 12;  // リングの半径(指を通す穴の半径)
handle_center_z = height / 2;

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

module handle() {
    // リング状の取手をカップ側面に配置
    // トーラスをY-Z平面に立てて、外周からはみ出す位置へ
    translate([outer_radius + handle_major_radius - wall, 0, handle_center_z])
        rotate([90, 0, 0])
            rotate_extrude(convexity = 4)
                translate([handle_major_radius, 0, 0])
                    circle(r = handle_minor_radius);
}

union() {
    mug_body();
    handle();
}
パラメータ (6)
スライダを動かすと openscad-wasm で再レンダリング

meta

runIdbare-max_claude-opus-4-8-7aa25b1a2f8f-2026-06-09T17-38-36-827Z
matrixIdbare-max/claude-opus-4-8
signature7aa25b1a2f8fb618…
provideranthropic
modelclaude-opus-4-8
harnessbare
statussuccess
duration7.01s (wallclock: load + prompt eval + generation + network)
tokens218 in / 462 out
wallclock tok/s65.9 tok/s (end-to-end)
cost$0.0126
createdAt2026-06-09T17:38:36.827Z
gitCommitc8a77106d384
openscadOpenSCAD version 2026.04.27

prompt

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

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